Skip to content

Commit

Permalink
login before pushing...
Browse files Browse the repository at this point in the history
  • Loading branch information
ducc committed Feb 7, 2024
1 parent 89f736d commit bec8092
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ jobs:
- name: Build
run: docker build -t ghcr.io/ducc/calories:$GITHUB_SHA -t ghcr.io/ducc/calories:latest -f Dockerfile .

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

- name: Docker login
if: github.ref == 'refs/heads/master'
run: echo ${{ secrets.PACKAGES_ACCESS_TOKEN }} | docker login ghcr.io -u ducc --password-stdin

- 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:latest

0 comments on commit bec8092

Please sign in to comment.