From a893eb6c971a2384725574f4ca916275fdfd03c1 Mon Sep 17 00:00:00 2001 From: somethington Date: Mon, 26 Aug 2024 12:06:30 -0700 Subject: [PATCH] updated actions --- .github/workflows/docker-publish.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 1e0c64d..6927a05 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -3,7 +3,7 @@ name: Publish Multi-Platform Docker Image on: push: branches: - - '**' # This will trigger the action for all branches + - '**' # This triggers the action for all branches jobs: build: @@ -29,4 +29,6 @@ jobs: context: . push: true platforms: linux/amd64,linux/arm64 - tags: ghcr.io/${{ github.repository_owner }}/tpp_solver:${{ github.ref_name }} + tags: | + ghcr.io/${{ github.repository_owner }}/tpp_solver:${{ github.ref_name }} # Tag with branch name + ${{ github.ref == 'refs/heads/main' && 'ghcr.io/${{ github.repository_owner }}/tpp_solver:latest' || '' }} # Tag as latest if main branch