File tree Expand file tree Collapse file tree 1 file changed +8
-47
lines changed Expand file tree Collapse file tree 1 file changed +8
-47
lines changed Original file line number Diff line number Diff line change 11name : release
22
33on :
4- workflow_dispatch :
5- inputs :
6- tag :
7- description : ' Tag to be released'
8- required : true
9- prerelease :
10- description : " Is the release a GA?"
11- required : false
12- default : false
13- type : boolean
14-
15- jobs :
164 release :
17- runs-on : ubuntu-latest
18- steps :
19- - name : Checkout
20- uses : actions/checkout@v2
21-
22- - name : Set up QEMU
23- uses : docker/setup-qemu-action@v1
24-
25- - name : Set up Docker Buildk
26- uses : docker/setup-buildx-action@v1
5+ types : [published]
276
28- - name : Login to ghcr
29- uses : docker/login-action@v1
30- with :
31- registry : ghcr.io
32- username : ${{ github.actor }}
33- password : ${{ secrets.GITHUB_TOKEN }}
34-
35- - name : Build and push
36- uses : docker/build-push-action@v2
37- with :
38- context : .
39- file : ./Dockerfile
40- push : true
41- tags : |
42- ghcr.io/scality/artifacts:${{ inputs.tag }}
43-
44- - name : Create Release
45- uses : softprops/action-gh-release@v1
46- env :
47- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
48- with :
49- name : Release ${{ github.event.inputs.tag }}
50- tag_name : ${{ github.event.inputs.tag }}
51- generate_release_notes : true
52- target_commitish : ${{ github.sha }}
7+ jobs :
8+ docker :
9+ uses : scality/workflows/.github/workflows/docker-build.yaml@v1
10+ with :
11+ name : artifacts
12+ namespace : scality
13+ tag : ${{ github.ref_name }}
You can’t perform that action at this time.
0 commit comments