From 79ac65eb43f8320ae917f2797091daaca4ceb1e5 Mon Sep 17 00:00:00 2001 From: Shane Date: Wed, 18 Sep 2024 11:16:55 +1000 Subject: [PATCH] Sign in to internal docker registry --- .github/workflows/docker-push.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker-push.yml b/.github/workflows/docker-push.yml index 52295848..d23844d5 100644 --- a/.github/workflows/docker-push.yml +++ b/.github/workflows/docker-push.yml @@ -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 @@ -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: @@ -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: |