Skip to content

Commit 7518ae1

Browse files
committed
fix: use docker hub instead of kaija
1 parent e16470d commit 7518ae1

File tree

1 file changed

+21
-18
lines changed

1 file changed

+21
-18
lines changed

.github/workflows/build_production.yml

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,28 @@ on:
55
types: [published]
66

77
jobs:
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+

0 commit comments

Comments
 (0)