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

Commit

Permalink
Switch container registry to ghcr.io
Browse files Browse the repository at this point in the history
wrestic backports will no longer be pushed to docker.io and quay.io.
All legacy images are moved to ghrc.io/k8up-io/wrestic
  • Loading branch information
ccremer committed Sep 30, 2021
1 parent 051d945 commit 6fed156
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 6fed156

Please sign in to comment.