diff --git a/.github/workflows/docker-hub.yml b/.github/workflows/docker-hub.yml index bde83ce97..cab922573 100644 --- a/.github/workflows/docker-hub.yml +++ b/.github/workflows/docker-hub.yml @@ -85,7 +85,6 @@ jobs: age-key: ${{ secrets.SOPS_PRIVATE }} - name: Login to DockerHub - if: github.event_name != 'pull_request' run: echo "$DOCKER_HUB_PASSWORD" | docker login -u "$DOCKER_HUB_USER" --password-stdin - name: create-version-json id: create-version-json @@ -101,7 +100,7 @@ jobs: context: . target: backend-production build-args: DOCKER_USER=${{ env.DOCKER_USER }}:-1000 - push: ${{ github.event_name != 'pull_request' }} + push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} @@ -143,7 +142,6 @@ jobs: dir: 'src/frontend/apps/desk' - name: Login to DockerHub - if: github.event_name != 'pull_request' run: echo "$DOCKER_HUB_PASSWORD" | docker login -u "$DOCKER_HUB_USER" --password-stdin - name: Build and push @@ -152,7 +150,7 @@ jobs: context: . target: frontend-production build-args: DOCKER_USER=${{ env.DOCKER_USER }}:-1000 - push: ${{ github.event_name != 'pull_request' }} + push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}