Skip to content
Snippets Groups Projects
Commit 9da967fc authored by Stefan Freudenberg's avatar Stefan Freudenberg
Browse files

Add building Keycloak image to continuous integration workflow

parent 13e27232
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
image: [ "strategytool", "keycloak"]
steps:
- uses: docker/login-action@v2
with:
......@@ -50,14 +54,14 @@ jobs:
password: ${{ secrets.SCW_SECRET_KEY }}
- uses: docker/build-push-action@v4
with:
cache-from: type=registry,ref=${{ env.REGISTRY }}/strategytool:latest
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ matrix.image }}:latest
cache-to: type=inline
file: docker/app/Dockerfile
target: production
push: ${{ github.event_name == 'push' }}
tags: |
${{ env.REGISTRY }}/strategytool:${{ github.sha }}
${{ env.REGISTRY }}/strategytool:latest
${{ env.REGISTRY }}/${{ matrix.image }}:${{ github.sha }}
${{ env.REGISTRY }}/${{ matrix.image }}:latest
update:
......@@ -74,6 +78,7 @@ jobs:
- uses: actions/checkout@v3
- run: |
echo 'strategytool_image = "${{ env.REGISTRY }}/strategytool:${{ github.sha }}"' > ./terraform/dev/terraform.tfvars
echo 'keycloak_image = "${{ env.REGISTRY }}/keycloak:${{ github.sha }}"' >> ./terraform/dev/terraform.tfvars
git config --global user.name actions-user
git config --global user.email actions@github.com
git commit -am "Update image tag"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.