Skip to content

Commit

Permalink
Merge pull request #8 from NVIDIA/chore-docker-login
Browse files Browse the repository at this point in the history
  • Loading branch information
ArangoGutierrez authored Feb 1, 2024
2 parents 4afe42c + 54a90af commit 0b167d7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/docs-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,16 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Log in to Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Detect change
id: change
run: |
export COMMIT_SHORT_SHA="${GITHUB_SHA:0:8}"
echo "${{ secrets.GITHUB_TOKEN }}" | docker login -u "${{ github.actor }}" --password-stdin "${{env.REGISTRY}}"
if ! docker manifest inspect "${REGISTRY}/${IMAGE_NAME}:${TAG}" 2>&1 > /dev/null ; then export NEEDS_IMAGE=true ; fi
def_branch=$(gh api "repos/${GITHUB_REPOSITORY}" -q '.default_branch')
git fetch origin "${def_branch}"
Expand Down Expand Up @@ -70,7 +75,7 @@ jobs:
with:
fetch-depth: 1
- name: Log in to Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
Expand Down

0 comments on commit 0b167d7

Please sign in to comment.