From 9c1a44956173333db04a0757197691452e93126b Mon Sep 17 00:00:00 2001 From: Adrian Dvergsdal Date: Sat, 18 Jul 2020 15:39:06 +0200 Subject: [PATCH] Add git sha labels --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 222e4d6..b0a1079 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,8 +32,9 @@ jobs: docker build . \ --pull=true \ --file=Dockerfile \ - --tag="$IMAGE_NAME:debian" \ --tag="$IMAGE_NAME:latest" \ + --tag="$IMAGE_NAME:debian" \ + --tag="$IMAGE_NAME:debian-$GITHUB_SHA" \ --label="org.opencontainers.image.source=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" \ --label="org.opencontainers.image.revision=$GITHUB_SHA" \ --label="org.opencontainers.image.created=$(date --rfc-3339=seconds)" @@ -47,6 +48,7 @@ jobs: --pull=true \ --file=Dockerfile-alpine \ --tag="$IMAGE_NAME:alpine" \ + --tag="$IMAGE_NAME:alpine-$GITHUB_SHA" \ --label="org.opencontainers.image.source=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" \ --label="org.opencontainers.image.revision=$GITHUB_SHA" \ --label="org.opencontainers.image.created=$(date --rfc-3339=seconds)"