File tree Expand file tree Collapse file tree 1 file changed +21
-18
lines changed
Expand file tree Collapse file tree 1 file changed +21
-18
lines changed Original file line number Diff line number Diff line change 55 types : [published]
66
77jobs :
8- build-and-store :
8+ build-and-push :
99 runs-on : ubuntu-latest
1010 steps :
11- - uses : actions/checkout@v4
12- - name : Build image
13- id : build-image
14- uses : redhat-actions/buildah-build@v2
15- with :
16- image : finlex
17- tags : production ${{ github.sha }}
18- containerfiles : ./Dockerfile
19- build-args : |
20- GIT_SHA=${{ github.sha }}
21- STAGING=false
22- - name : Build and and export
23- uses : redhat-actions/push-to-registry@v2
24- 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 :
2527 image : ${{ steps.build-image.outputs.image }}
2628 tags : ${{ steps.build-image.outputs.tags }}
27- registry : quay.io/toska
28- username : toska+github
29- password : ${{ secrets.AUTH_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