From 8f3af896046bfd65032ab9b6342684d7b9612e32 Mon Sep 17 00:00:00 2001 From: Steven Honson Date: Tue, 27 Apr 2021 08:54:10 +1000 Subject: [PATCH] Tag container releases The container tag `latest` will also now point to the newest tagged release. For bleeding edge, `master` can be used as the container tag. --- .github/workflows/container.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index 8e7b3ce..bbf7f53 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -4,6 +4,8 @@ on: push: branches: - 'master' + tags: + - 'v*' pull_request: workflow_dispatch: @@ -50,7 +52,7 @@ jobs: cache-from: type=local,src=/tmp/buildx-cache cache-to: type=local,dest=/tmp/buildx-cache-new,mode=max push: ${{ github.event_name != 'pull_request' }} - tags: ghcr.io/${{ github.repository }}:latest + tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - name: Move Cache