From 9506b7d8ee22440a501e7baf18a79c66f6905d36 Mon Sep 17 00:00:00 2001 From: Oded Ben Ozer Date: Thu, 4 Apr 2024 10:59:40 +0200 Subject: [PATCH] 3rd test of GHA syntax --- .github/workflows/docker-publish-on-comment.yml | 4 ++-- .github/workflows/docker-publish.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-publish-on-comment.yml b/.github/workflows/docker-publish-on-comment.yml index 79c223c4..d8572ea8 100644 --- a/.github/workflows/docker-publish-on-comment.yml +++ b/.github/workflows/docker-publish-on-comment.yml @@ -54,10 +54,10 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Log into Docker Hub registry - if: ${{ secrets.DOCKERHUB_TOKEN }} != '' + if: env.DOCKERHUB_USERNAME != '' uses: docker/login-action@3d58c274f17dffee475a5520cbe67f0a882c4dbb with: - username: ${{ secrets.DOCKERHUB_USERNAME }} + username: ${{ env.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} # Extract metadata (tags, labels) for Docker diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 7de97eb0..efe18d82 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -56,10 +56,10 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Log into Docker Hub registry - if: github.event_name != 'pull_request' && ${{ secrets.DOCKERHUB_TOKEN }} != '' + if: github.event_name != 'pull_request' && env.DOCKERHUB_USERNAME != '' uses: docker/login-action@3d58c274f17dffee475a5520cbe67f0a882c4dbb with: - username: ${{ secrets.DOCKERHUB_USERNAME }} + username: ${{ env.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} # Extract metadata (tags, labels) for Docker