Skip to content

Commit ebd3045

Browse files
committed
add labels to docker image
1 parent 24cbada commit ebd3045

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/build-container.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,14 @@ jobs:
5151
type=ref,event=branch
5252
type=ref,event=pr
5353
type=raw,value=latest,enable={{is_default_branch}}
54+
env:
55+
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
5456
- name: Build and push
5557
uses: docker/build-push-action@v5
5658
with:
5759
push: true
5860
tags: ${{ steps.meta.outputs.tags }}
61+
labels: ${{ steps.meta.outputs.labels }}
5962
annotations: ${{ steps.meta.outputs.annotations }}
6063
- name: Update deployed image
6164
if: ${{ contains( fromJSON(steps.meta.outputs.json).tags, format('{0}:latest', github.repository)) }}

0 commit comments

Comments
 (0)