File tree Expand file tree Collapse file tree 1 file changed +21
-19
lines changed
Expand file tree Collapse file tree 1 file changed +21
-19
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7-
87jobs :
9- build-and-store :
8+ build-and-push :
109 runs-on : ubuntu-latest
1110 steps :
12- - uses : actions/checkout@v4
13- - name : Build image
14- id : build-image
15- uses : redhat-actions/buildah-build@v2
16- with :
17- image : finlex
18- tags : production ${{ github.sha }}
19- containerfiles : ./Dockerfile
20- build-args : |
21- GIT_SHA=${{ github.sha }}
22- STAGING=false
23- - name : Build and and export
24- uses : redhat-actions/push-to-registry@v2
25- with :
11+ - uses : actions/checkout@v4
12+
13+ - name : Build image
14+ id : build-image
15+ uses : redhat-actions/buildah-build@v2
16+ with :
17+ image : docker.io/<dockerhub-käyttäjänimi>/finlex
18+ tags : production,${{ github.sha }}
19+ containerfiles : ./Dockerfile
20+ build-args : |
21+ GIT_SHA=${{ github.sha }}
22+ STAGING=false
23+
24+ - name : Push image to Docker Hub
25+ uses : redhat-actions/push-to-registry@v2
26+ with :
2627 image : ${{ steps.build-image.outputs.image }}
2728 tags : ${{ steps.build-image.outputs.tags }}
28- registry : quay.io/toska
29- username : toska+github
30- password : ${{ secrets.QUAY_IO_TOKEN }}
29+ registry : docker.io
30+ username : ${{ secrets.DOCKER_HUB_USER }}
31+ password : ${{ secrets.DOCKER_HUB_TOKEN }}
32+
You can’t perform that action at this time.
0 commit comments