Skip to content

Commit

Permalink
cant push multiple tags in 1
Browse files Browse the repository at this point in the history
  • Loading branch information
ducc committed Feb 7, 2024
1 parent 183b045 commit f600291
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@ jobs:

steps:
- uses: actions/checkout@v3

- name: Build
run: docker build -t ghcr.io/ducc/calories:$GITHUB_SHA -t ghcr.io/ducc/calories:latest -f Dockerfile .

- name: Push
- name: Push sha
if: github.ref == 'refs/heads/master'
run: docker push ghcr.io/ducc/calories:$GITHUB_SHA

- name: Push latest
if: github.ref == 'refs/heads/master'
run: docker push ghcr.io/ducc/calories:$GITHUB_SHA ghcr.io/ducc/calories:latest
run: docker push ghcr.io/ducc/calories:latest

0 comments on commit f600291

Please sign in to comment.