@@ -13,23 +13,41 @@ jobs:
1313
1414 steps :
1515 - name : 🛎️ Checkout
16- uses : actions/checkout@v3
16+ uses : actions/checkout@v4
1717
1818 - name : 🔧 Set up Docker Buildx
1919 uses : docker/setup-buildx-action@v3
2020
2121 - name : 🔐 Login to Docker Registry
22- uses : docker/login-action@v2
22+ uses : docker/login-action@v3
2323 with :
2424 registry : ghcr.io
2525 username : ${{ github.actor }}
2626 password : ${{ secrets.GITHUB_TOKEN }}
2727
28- - name : 🔧 Build and push Docker Image
29- uses : docker/build-push-action@v4
28+ - name : 🔧 Build and push property-base
29+ if : matrix.package == 'property-base'
30+ uses : docker/build-push-action@v5
3031 with :
3132 context : .
3233 file : ./packages/${{ matrix.package }}/Dockerfile
3334 push : true
3435 tags : |
3536 ghcr.io/bostads-ab-mimer/property-base/${{ matrix.package }}:release-${{ github.event.release.tag_name }}
37+
38+ - name : 🔧 Build and push property-tree
39+ if : matrix.package == 'property-tree'
40+ uses : docker/build-push-action@v5
41+ with :
42+ build-args : |
43+ VITE_API_URL=http://property-base
44+ VITE_CORE_API_URL=https://api.mimer.nu
45+ VITE_KEYCLOAK_URL=https://auth.mimer.nu/realms/onecore
46+ VITE_KEYCLOAK_CLIENT_ID=onecore
47+ VITE_KEYCLOAK_REDIRECT_URI=https://property-tree.mimer.nu/callback
48+ VITE_KEYCLOAK_REALM=onecore
49+ context : .
50+ file : ./packages/${{ matrix.package }}/Dockerfile
51+ push : true
52+ tags : |
53+ ghcr.io/bostads-ab-mimer/property-base/${{ matrix.package }}:release-${{ github.event.release.tag_name }}
0 commit comments