Skip to content

Commit d4a0254

Browse files
authored
Create main.yml
1 parent 3fb5d88 commit d4a0254

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/main.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build and push docker image (production)
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build-and-store:
10+
runs-on: ubuntu-latest
11+
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:
26+
image: ${{ steps.build-image.outputs.image }}
27+
tags: ${{ steps.build-image.outputs.tags }}
28+
registry: quay.io/toska
29+
username: toska+github
30+
password: ${{ secrets.AUTH_TOKEN }}

0 commit comments

Comments
 (0)