From eb99d2b3d7b0624e453a6d2a211c053dd1bd1c2c Mon Sep 17 00:00:00 2001 From: iverly Date: Thu, 18 Apr 2024 17:43:36 +0200 Subject: [PATCH] feat(ci): use harbor registry for push Signed-off-by: iverly --- .github/workflows/ci.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0ab2391..5a9b050 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -45,9 +45,9 @@ jobs: - name: Login to GitHub Container Registry uses: docker/login-action@v2.1.0 with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + registry: ${{ secrets.DOCKER_REGISTRY_URL }} + username: ${{ secrets.DOCKER_REGISTRY_USER }} + password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }} - name: Generate temporary signing key uses: chainguard-dev/actions/melange-keygen@main @@ -71,9 +71,9 @@ jobs: apko-image: ghcr.io/wolfi-dev/apko:latest config: ${{ github.workspace }}/apps/${{ matrix.app }}/apko.yaml keyring-append: ${{ github.workspace }}/melange.rsa.pub - tag: ghcr.io/${{ github.repository }}/${{ matrix.app }}:${{ steps.vars.outputs.sha_short }} - generic-user: ${{ github.actor }} - generic-pass: ${{ secrets.GITHUB_TOKEN }} + tag: ${{ secrets.DOCKER_REGISTRY_URL }}/${{ github.repository }}/${{ matrix.app }}:${{ steps.vars.outputs.sha_short }} + generic-user: ${{ secrets.DOCKER_REGISTRY_USER }} + generic-pass: ${{ secrets.DOCKER_REGISTRY_PASSWORD }} - name: Sign the images with GitHub OIDC Token run: |