Skip to content

Commit d7a86b1

Browse files
author
Moritz Clasmeier
committed
test
1 parent ac869d6 commit d7a86b1

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/docker-build.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,45 +60,45 @@ 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 }}"
103-
echo "${{ steps.docker_build_slim.outputs.imageid }}"
104-
echo "${{ steps.docker_build_slim.outputs.digest }}"
102+
echo "Images pushed:"
103+
echo "- ${{ steps.meta.outputs.tags }}-slim:${{ steps.docker_build_slim.outputs.imageid }}"
104+
echo "- ${{ steps.meta.outputs.tags }}:${{ steps.docker_build.outputs.imageid }}"

0 commit comments

Comments
 (0)