Skip to content

Commit

Permalink
Update docker_ci.yml
Browse files Browse the repository at this point in the history
Login to ghcr.io
  • Loading branch information
dmunozv04 authored Jan 6, 2025
1 parent e58a143 commit 7348c2e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/docker_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,13 @@ jobs:
"var-cache-apt": "/var/cache/apt",
"root-cache-pip": "/root/.cache/pip"
}
- name: Login to GHCR
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to DockerHub
if: github.event_name != 'pull_request' && env.DOCKERHUB_USERNAME
uses: docker/login-action@v3
Expand Down Expand Up @@ -112,4 +118,4 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
cache-to: type=gha,mode=max

0 comments on commit 7348c2e

Please sign in to comment.