Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Check Docker Password Secret
id: check_secret
run: |
if [ -z "${{ secrets.DOCKER_PASSWORD }}" ]; then
echo "docker_password_present=false" >> $GITHUB_OUTPUT
else
echo "docker_password_present=true" >> $GITHUB_OUTPUT
fi


- name: Docker Login
if: ${{ inputs.push }}
if: ${{ inputs.push && steps.check_secret.outputs.docker_password_present == 'true' }}
uses: docker/login-action@v3
with:
registry: ${{ inputs.registry }}
Expand All @@ -44,7 +54,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Get current date
- name: Get current datee
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT

Expand Down
Loading