Skip to content

Commit f8b52ab

Browse files
committed
fix workflow
1 parent b764720 commit f8b52ab

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,16 @@ jobs:
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

0 commit comments

Comments
 (0)