From ed6c70e1a9230f7df0d862d8bd837db28c47c5ee Mon Sep 17 00:00:00 2001 From: phil Date: Fri, 6 Dec 2024 20:07:13 +0100 Subject: [PATCH] CI: publish container with tag latest along with the version --- .forgejo/workflows/test_and_build.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/test_and_build.yaml b/.forgejo/workflows/test_and_build.yaml index 4f51fa9..bd98561 100644 --- a/.forgejo/workflows/test_and_build.yaml +++ b/.forgejo/workflows/test_and_build.yaml @@ -100,7 +100,7 @@ jobs: build-args: | APP_VERSION=${{ steps.version.outputs.version }} - - name: Push the image to the registry + - name: Push the image to the registry (version tag) if: fromJSON(steps.builder.outputs.run) uses: actions/push-to-registry@v2 with: @@ -108,6 +108,14 @@ jobs: image: treetrail-backend tags: ${{ steps.version.outputs.version }} + - name: Push the image to the registry (latest tag) + if: fromJSON(steps.builder.outputs.run) + uses: actions/push-to-registry@v2 + with: + registry: "docker://${{ vars.REGISTRY }}/${{ vars.ORGANISATION }}" + image: treetrail-backend + tags: latest + - name: Install uv uses: astral-sh/setup-uv@v4 with: