From 969ff02dcf1eef3c4b59ddd967f9112ea20bc1c7 Mon Sep 17 00:00:00 2001 From: Jenny <39961845+jennyfothergill@users.noreply.github.com> Date: Fri, 3 May 2024 15:51:09 -0600 Subject: [PATCH 1/3] Update build.yml --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 78c71c4..fb4b8cc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,6 +68,7 @@ jobs: with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | + type=raw,value=latest,enable={{ is_default_branch }} ${{ steps.latest-version.outputs.VERSION }} - name: Build Docker Image From 304d9e4437c59de19a0a6352ad521de4d552cd1b Mon Sep 17 00:00:00 2001 From: Jenny <39961845+jennyfothergill@users.noreply.github.com> Date: Fri, 3 May 2024 16:02:58 -0600 Subject: [PATCH 2/3] Update build.yml --- .github/workflows/build.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fb4b8cc..e66421c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,7 +68,7 @@ jobs: with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | - type=raw,value=latest,enable={{ is_default_branch }} + type=ref,enable=true,priority=600,event=tag ${{ steps.latest-version.outputs.VERSION }} - name: Build Docker Image @@ -85,7 +85,6 @@ jobs: - name: Test image run: | - docker ps docker run --rm ${{ steps.fqirp.outputs.FQIRP }} python -c "import grits; print(grits.__version__)" - name: Push Docker image From aa0605601a3e4264f6604f4d8d457dbee39c453c Mon Sep 17 00:00:00 2001 From: Jenny <39961845+jennyfothergill@users.noreply.github.com> Date: Fri, 3 May 2024 16:27:56 -0600 Subject: [PATCH 3/3] Update build.yml --- .github/workflows/build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e66421c..bf3afd5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,7 +68,10 @@ jobs: with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | - type=ref,enable=true,priority=600,event=tag + type=ref,event=tag,enable=true,priority=600 + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{version}} + type=sha ${{ steps.latest-version.outputs.VERSION }} - name: Build Docker Image