From 3e3ac36076c05c4177acd7acb43424cb7f8275c3 Mon Sep 17 00:00:00 2001 From: mauwii Date: Sat, 16 Sep 2023 01:51:03 +0200 Subject: [PATCH] set credentials for registry --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b3c3def..b19c1bf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,6 +42,9 @@ jobs: image: registry:2 ports: - 5000:5000 + credentials: + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} env: CACHE_FROM_REGISTRY: docker.io IMAGE_NAME: ${{ format('{0}-{1}', matrix.distro, matrix.from-flavor) }} @@ -178,8 +181,8 @@ jobs: keep-previous-comments: true summary: ${{ github.actor != 'nektos/act' }} github-token: ${{ secrets.GITHUB_TOKEN }} - dockerhub-user: ${{ vars.DOCKERHUB_USER }} - dockerhub-password: ${{ secrets.DOCKERHUB_TOKEN }} + registry-user: ${{ github.repository_owner}} + registry-password: ${{ secrets.GITHUB_TOKEN }} env: IMAGE: ${{ format('{0}:{1}-{2}', env.IMAGE_REPOSITORY, matrix.from-version, github.head_ref || github.ref_name) }} REGISTRY_IMAGE: ${{ format('{0}/{1}:{2}-{3}', env.REGISTRY, env.IMAGE_REPOSITORY, matrix.from-version, github.head_ref || github.ref_name) }}