Skip to content
Open
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
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Log in to Docker Registry
uses: docker/login-action@v3
uses: docker/login-action@v4
with:
registry: ${{ secrets.DOCKER_REGISTRY_URL }}
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
Comment on lines 97 to 103
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good practice updating the Docker login action to v4 for security and feature improvements. Consider also updating the docker/setup-buildx-action to the latest version for consistency:

uses: docker/setup-buildx-action@v4

This ensures all Docker-related actions are using their latest stable versions, which typically include security patches and performance improvements.

Expand Down Expand Up @@ -150,7 +150,7 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Log in to Docker Registry
uses: docker/login-action@v3
uses: docker/login-action@v4
with:
registry: ${{ secrets.DOCKER_REGISTRY_URL }}
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
Comment on lines 152 to 156
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding error handling and validation for the Docker registry secrets. You could add a step to verify the secrets are present before attempting login:

- name: Validate Docker Registry Secrets
  run: |
    if [ -z "${{ secrets.DOCKER_REGISTRY_URL }}" ] || [ -z "${{ secrets.DOCKER_REGISTRY_USERNAME }}" ]; then
      echo "Error: Docker registry secrets are not configured"
      exit 1
    fi

- name: Log in to Docker Registry
  uses: docker/login-action@v4
  with:
    registry: ${{ secrets.DOCKER_REGISTRY_URL }}
    username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
    password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}

This provides better error messages and prevents silent failures when secrets are misconfigured.

Expand Down