@@ -60,45 +60,46 @@ jobs:
6060 # Tag with version string from 'make version'.
6161 type=raw,value=${{ steps.build-meta.outputs.version }}
6262
63- - name : Build and push image
64- id : docker_build
63+ - name : Build and push slim image
64+ id : docker_build_slim
6565 uses : docker/build-push-action@v6
6666 with :
6767 context : .
6868 platforms : linux/amd64,linux/arm64
6969 push : true
70- tags : ${{ steps.meta.outputs.tags }}
70+ tags : ${{ steps.meta.outputs.tags }}-slim
7171 labels : ${{ steps.meta.outputs.labels }}
7272 build-args : |
7373 VERSION=${{ steps.build-meta.outputs.version }}
7474 GIT_COMMIT=${{ steps.build-meta.outputs.git_commit }}
7575 BUILD_DATE=${{ steps.build-meta.outputs.build_date }}
76+ VARIANT=slim
7677 cache-from : |
7778 type=gha
7879 type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache
7980 cache-to : type=gha,mode=max
8081
81- - name : Build and push slim image
82- id : docker_build_slim
82+ - name : Build and push image
83+ id : docker_build
8384 uses : docker/build-push-action@v6
8485 with :
8586 context : .
8687 platforms : linux/amd64,linux/arm64
8788 push : true
88- tags : ${{ steps.meta.outputs.tags }}-slim
89+ tags : ${{ steps.meta.outputs.tags }}
8990 labels : ${{ steps.meta.outputs.labels }}
9091 build-args : |
9192 VERSION=${{ steps.build-meta.outputs.version }}
9293 GIT_COMMIT=${{ steps.build-meta.outputs.git_commit }}
9394 BUILD_DATE=${{ steps.build-meta.outputs.build_date }}
94- VARIANT=slim
9595 cache-from : |
9696 type=gha
9797 type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache
9898 cache-to : type=gha,mode=max
99+
99100 - name : Images pushed
100101 run : |
101- echo "${{ steps.docker_build.outputs.imageid }}"
102- echo "${{ steps.docker_build.outputs.digest }}"
103102 echo "${{ steps.docker_build_slim.outputs.imageid }}"
104103 echo "${{ steps.docker_build_slim.outputs.digest }}"
104+ echo "${{ steps.docker_build.outputs.imageid }}"
105+ echo "${{ steps.docker_build.outputs.digest }}"
0 commit comments