From 83cad85b21f8e163f4b5d2afaf9a59eafa4a2893 Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Mon, 6 Mar 2023 18:19:53 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A2=20GitHub=20Actions:=20Set=20edge,?= =?UTF-8?q?=20branch=20and=20semver=20tags=20(including=20latest)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-subimage.yml | 3 +++ .github/workflows/build.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/build-subimage.yml b/.github/workflows/build-subimage.yml index cc86acb..afc3ccf 100644 --- a/.github/workflows/build-subimage.yml +++ b/.github/workflows/build-subimage.yml @@ -33,6 +33,9 @@ jobs: with: images: | quratorspk/ocrd-galley-${{ inputs.subimage }} + flavor: | + latest=auto + # latest=auto should generate "latest" for the type=semver tags entry tags: ${{ inputs.tags }} - name: Login to Docker Hub diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 41143ce..11c0e06 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,6 +41,9 @@ jobs: subimage: ${{ matrix.subimage }} tags: | type=sha,format=long + type=edge,branch=master + type=ref,event=branch + type=semver,pattern={{version}} secrets: inherit build-rest: