From 784fc7a8bb42f9b158f8b62d1aac6082a5816d84 Mon Sep 17 00:00:00 2001 From: Myles Gray Date: Wed, 3 Mar 2021 21:35:50 +0000 Subject: [PATCH 1/2] Added push to DockerHub and GHCR to CI --- .github/workflows/ci.yaml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 137a9468..a940b691 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -52,12 +52,18 @@ jobs: name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 - - name: Login to Registry + name: Login to GitHub Container Registry uses: docker/login-action@v1 with: - registry: docker.pkg.github.com - username: ${{ secrets.USERNAME }} - password: ${{ secrets.TOKEN }} + registry: ghcr.io + username: ${{ secrets.GH_USERNAME }} + password: ${{ secrets.GH_PAT }} + - + name: Login to Docker Hub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push id: docker_build @@ -65,7 +71,11 @@ jobs: with: platforms: linux/amd64,linux/arm64,linux/arm push: true - tags: docker.pkg.github.com/argoproj-labs/argocd-notifications/argocd-notifications:${{ env.IMAGE_TAG }} + tags: | + argoproj-labs/argocd-notifications:${{ env.IMAGE_TAG }} + argoproj-labs/argocd-notifications:latest + ghcr.io/argoproj-labs/argocd-notifications:${{ env.IMAGE_TAG }} + ghcr.io/argoproj-labs/argocd-notifications:latest file: ./Dockerfile build-args: | IMAGE_TAG=${{ env.IMAGE_TAG }} \ No newline at end of file From 4e27663566fa067751e6113d6110354d59846746 Mon Sep 17 00:00:00 2001 From: Myles Gray Date: Thu, 4 Mar 2021 20:01:16 +0000 Subject: [PATCH 2/2] Migrated from deprecated GitHub packages to GHCR --- .github/workflows/ci.yaml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a940b691..f9163408 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -58,12 +58,6 @@ jobs: registry: ghcr.io username: ${{ secrets.GH_USERNAME }} password: ${{ secrets.GH_PAT }} - - - name: Login to Docker Hub - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push id: docker_build @@ -72,9 +66,6 @@ jobs: platforms: linux/amd64,linux/arm64,linux/arm push: true tags: | - argoproj-labs/argocd-notifications:${{ env.IMAGE_TAG }} - argoproj-labs/argocd-notifications:latest - ghcr.io/argoproj-labs/argocd-notifications:${{ env.IMAGE_TAG }} ghcr.io/argoproj-labs/argocd-notifications:latest file: ./Dockerfile build-args: |