Skip to content

Commit

Permalink
updated actions
Browse files Browse the repository at this point in the history
  • Loading branch information
somethington committed Aug 26, 2024
1 parent 4160595 commit a893eb6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit a893eb6

Please sign in to comment.