Skip to content

Commit

Permalink
login to docker
Browse files Browse the repository at this point in the history
  • Loading branch information
ducc committed Feb 7, 2024
1 parent f600291 commit 89f736d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ jobs:
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 latest
if: github.ref == 'refs/heads/master'
run: docker push ghcr.io/ducc/calories:latest

0 comments on commit 89f736d

Please sign in to comment.