Skip to content

Commit

Permalink
Sign in to internal docker registry
Browse files Browse the repository at this point in the history
  • Loading branch information
tothegills committed Sep 18, 2024
1 parent 1857877 commit 79ac65e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/docker-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ jobs:
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_PAT }}
registry: ${{ secrests.INTERNAL_DOCKER_REGISTRY_URL }}
username: ${{ secrets.INTERNAL_DOCKER_READ_ONLY_USER_NAME }}
password: ${{ secrets.INTERNAL_DOCKER_READ_ONLY_ACCESS_TOKEN }}

- name: Build and push by digest
id: build
Expand All @@ -60,7 +61,6 @@ jobs:
mkdir -p /tmp/digests
digest="${{ steps.build.outputs.digest }}"
touch "/tmp/digests/${digest#sha256:}"
- name: Upload digest
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -93,8 +93,9 @@ jobs:
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_PAT }}
registry: ${{ secrests.INTERNAL_DOCKER_REGISTRY_URL }}
username: ${{ secrets.INTERNAL_DOCKER_READ_ONLY_USER_NAME }}
password: ${{ secrets.INTERNAL_DOCKER_READ_ONLY_ACCESS_TOKEN }}
- name: Create manifest list and push
working-directory: /tmp/digests
run: |
Expand Down

0 comments on commit 79ac65e

Please sign in to comment.