From 496f91646da34d0c30d8f435912ce3936628b8f8 Mon Sep 17 00:00:00 2001 From: Andre Miras Date: Mon, 19 Aug 2024 11:46:49 +0200 Subject: [PATCH] :construction_worker: Fix docker login Run docker login on push to develop rather than during pull requests --- .github/workflows/docker.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 63a8813af..bd918a9c7 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -14,10 +14,11 @@ jobs: - uses: actions/checkout@v4 - uses: docker/setup-buildx-action@v3 - run: make docker/build - - run: make docker/login env: DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} - name: docker push if: github.ref == 'develop' - run: make docker/push + run: | + make docker/login + make docker/push