From bec809297729550253446426aed00ac2cad5d60d Mon Sep 17 00:00:00 2001 From: Joe Burnard Date: Wed, 7 Feb 2024 22:43:35 +0000 Subject: [PATCH] login before pushing... --- .github/workflows/rust.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index b04e0c5..453bb39 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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