2525 - container_name : studio
2626 dockerfile : studio/Dockerfile
2727 context_path : .
28+ - container_name : keycloak
29+ dockerfile : keycloak/Dockerfile
30+ context_path : keycloak
31+ - container_name : otelcollector
32+ dockerfile : otelcollector/Dockerfile
33+ context_path : otelcollector
2834
2935 runs-on : ubuntu-latest
3036 permissions :
3541 - name : Checkout repository
3642 uses : actions/checkout@v3
3743
38- - name : Log in to the Container registry
44+ - name : Log in to Github Container registry
3945 uses : docker/login-action@v2
4046 with :
4147 registry : ${{ env.REGISTRY }}
@@ -46,11 +52,16 @@ jobs:
4652 id : meta
4753 uses : docker/metadata-action@v4
4854 with :
49- images : ${{ env.REGISTRY }}/${{ github.repository }}/${{ matrix.container_name }}
55+ images : |
56+ ${{ env.REGISTRY }}/${{ github.repository }}/${{ matrix.container_name }}
5057 tags : |
5158 type=ref,event=branch
5259 type=ref,event=pr
53- type=sha,format=long,prefix=sha256-
60+ type=sha
61+ # set latest tag for default branch
62+ type=raw,value=latest,enable={{is_default_branch}}
63+ # use custom value instead of git tag
64+ type=match,pattern=[a-zA-Z-_]+@(.*),group=1
5465
5566 - name : Install Docker Buildx
5667 uses : docker/setup-buildx-action@v2
6374 context : ${{ matrix.context_path }}
6475 tags : ${{ steps.meta.outputs.tags }}
6576 labels : ${{ steps.meta.outputs.labels }}
77+ cache-from : type=registry,ref=${{ env.REGISTRY }}/${{ github.repository }}/${{ matrix.container_name }}:buildcache
78+ cache-to : type=registry,ref=${{ env.REGISTRY }}/${{ github.repository }}/${{ matrix.container_name }}:buildcache,mode=max
0 commit comments