File tree Expand file tree Collapse file tree 1 file changed +9
-18
lines changed
Expand file tree Collapse file tree 1 file changed +9
-18
lines changed Original file line number Diff line number Diff line change 88 build-and-push :
99 runs-on : ubuntu-latest
1010 steps :
11- - uses : actions/checkout@v4
11+ - name : Checkout
12+ uses : actions/checkout@v4
1213
13- - name : Build image
14- id : build-image
15- uses : redhat-actions/buildah-build@v2
14+ - name : Login to DockerHub
15+ uses : docker/login-action@v3
1616 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 :
27- image : ${{ steps.build-image.outputs.image }}
28- tags : ${{ steps.build-image.outputs.tags }}
29- registry : docker.io
3017 username : ${{ secrets.DOCKER_HUB_USER }}
3118 password : ${{ secrets.DOCKER_HUB_TOKEN }}
32-
19+
20+ - name : Build and push the Docker image
21+ run : |-
22+ docker build -t toska/finlex:$GITHUB_SHA .
23+ docker push toska/finlex:$GITHUB_SHA
You can’t perform that action at this time.
0 commit comments