From ca23b449129e8c0e34b5dbec5483cf2b42e0bd17 Mon Sep 17 00:00:00 2001 From: Nicholas Date: Thu, 7 Dec 2023 20:18:31 +0100 Subject: [PATCH] deployment: add annotations: set DOCKER_METADATA_ANNOTATIONS_LEVELS to manifest and index --- .github/workflows/on_push_main_publish.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/on_push_main_publish.yml b/.github/workflows/on_push_main_publish.yml index 036e6754..adfbc393 100644 --- a/.github/workflows/on_push_main_publish.yml +++ b/.github/workflows/on_push_main_publish.yml @@ -6,7 +6,7 @@ name: Create and publish a Docker image # Configures this workflow to run every time a change is pushed to the branch called `master`. on: push: - branches: ["master"] + branches: ["209-deployment-add-annotations-to-docker-images-2"] release: types: [published] @@ -51,6 +51,8 @@ jobs: type=raw,value=latest,enable={{is_default_branch}} #semver for tag: type=semver,pattern={{version}} + env: + DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index # This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages. # It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.