Skip to content

Commit b764720

Browse files
committed
fix
1 parent 9fe4575 commit b764720

File tree

1 file changed

+21
-19
lines changed

1 file changed

+21
-19
lines changed

.github/workflows/main.yml

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,29 @@ on:
44
push:
55
branches:
66
- main
7-
87
jobs:
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+

0 commit comments

Comments
 (0)