Skip to content

Commit

Permalink
set credentials for registry
Browse files Browse the repository at this point in the history
  • Loading branch information
mauwii committed Sep 15, 2023
1 parent c61b8bb commit 3e3ac36
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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) }}
Expand Down Expand Up @@ -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) }}
Expand Down

0 comments on commit 3e3ac36

Please sign in to comment.