-
Notifications
You must be signed in to change notification settings - Fork 45
58 lines (52 loc) · 1.33 KB
/
promote.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Promote
on:
push:
tags:
- '**'
jobs:
build:
uses: ./.github/workflows/build.yaml
secrets: inherit
generate-sbom:
needs:
- build
uses: ./.github/workflows/generate-sbom.yaml
secrets: inherit
promote-artifacts:
needs:
- build
- generate-sbom
runs-on: ubuntu-20.04
outputs:
artifact-link: ${{ steps.promote.outputs.link }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Promote artifacts
id: promote
uses: scality/action-artifacts@v4
with:
method: promote
url: https://artifacts.scality.net
name: ${{ needs.build.outputs.artifact-name }}
tag: ${{ github.ref_name }}
user: ${{ secrets.ARTIFACTS_USER }}
password: ${{ secrets.ARTIFACTS_PASSWORD }}
publish:
needs:
- promote-artifacts
uses: ./.github/workflows/publish.yaml
secrets: inherit
with:
artifacts-url: ${{ needs.promote-artifacts.outputs.artifact-link }}
is_production: true
generate-snapshots:
needs:
- promote-artifacts
uses: ./.github/workflows/e2e-tests.yaml
secrets: inherit
with:
artifacts-url: ${{ needs.promote-artifacts.outputs.artifact-link }}
nodes-count: 2
install-solution: true
generate-snapshots: true