Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #109 from k8up-io/registry
Browse files Browse the repository at this point in the history
Switch container registry to ghcr.io
  • Loading branch information
ccremer authored Sep 30, 2021
2 parents 051d945 + 6fed156 commit d72a216
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 23 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/push-nonroot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,11 @@ jobs:
- name: Set version from tag
if: startsWith(github.ref, 'refs/tags/v')
run: echo VERSION="$(echo ${GITHUB_REF#refs/tags/})-nonroot" >> $GITHUB_ENV
- name: Push Image to docker.io
- name: Push Image to ghcr.io
uses: elgohr/Publish-Docker-Github-Action@master
with:
registry: docker.io
registry: ghcr.io
name: "${{ github.repository }}:${{ env.VERSION }}"
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
buildoptions: --target nonroot
- name: Push Image to quay.io
uses: elgohr/Publish-Docker-Github-Action@master
with:
registry: quay.io
name: "${{ github.repository }}:${{ env.VERSION }}"
username: ${{ secrets.QUAY_IO_USERNAME }}
password: ${{ secrets.QUAY_IO_PASSWORD }}
username: ${{ secrets.GITHUB_TOKEN }}
password: ${{ secrets.GITHUB_TOKEN }}
buildoptions: --target nonroot
15 changes: 4 additions & 11 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,10 @@ jobs:
- name: Set version from tag
if: startsWith(github.ref, 'refs/tags/v')
run: echo VERSION=$(echo ${GITHUB_REF#refs/tags/}) >> $GITHUB_ENV
- name: Push Image to docker.io
- name: Push Image to ghcr.io
uses: elgohr/Publish-Docker-Github-Action@master
with:
registry: docker.io
registry: ghcr.io
name: "${{ github.repository }}:${{ env.VERSION }}"
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push Image to quay.io
uses: elgohr/Publish-Docker-Github-Action@master
with:
registry: quay.io
name: "${{ github.repository }}:${{ env.VERSION }}"
username: ${{ secrets.QUAY_IO_USERNAME }}
password: ${{ secrets.QUAY_IO_PASSWORD }}
username: ${{ secrets.GITHUB_TOKEN }}
password: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d72a216

Please sign in to comment.