Skip to content

Commit

Permalink
⚗️ Test ghcr.io publication
Browse files Browse the repository at this point in the history
  • Loading branch information
zigarn committed Jun 5, 2024
1 parent 89e772d commit 2f88c4d
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/build-one.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to GitHub Container registry
if: ${{ github.ref == 'refs/heads/master' }}
uses: docker/login-action@v3
with:
registry: ghcr.io
Expand Down Expand Up @@ -160,13 +159,11 @@ jobs:
password: ${{ secrets.GAR_JSON_KEY }}

- name: Set up Docker Buildx with docker-container driver
if: ${{ github.ref == 'refs/heads/master' }}
uses: docker/setup-buildx-action@v3
with:
driver: docker-container

- name: Build and push
if: ${{ github.ref == 'refs/heads/master' }}
env:
IMAGE_NAME: ${{ env.IMAGE_REPOSITORY }}:${{ inputs.tag }}
IMAGE_VERSIONED_NAME: ${{ env.IMAGE_REPOSITORY }}:${{ steps.tag.outputs.value }}
Expand All @@ -176,18 +173,8 @@ jobs:
platforms: linux/amd64,linux/arm64
labels: ${{ steps.meta.outputs.labels }}
tags: |
zenika/${{ env.IMAGE_NAME }}
zenika/${{ env.IMAGE_VERSIONED_NAME }}
ghcr.io/zenika/${{ env.IMAGE_NAME }}
ghcr.io/zenika/${{ env.IMAGE_VERSIONED_NAME }}
us-docker.pkg.dev/zenika-hub/gcr.io/${{ env.IMAGE_NAME }}
us-docker.pkg.dev/zenika-hub/gcr.io/${{ env.IMAGE_VERSIONED_NAME }}
us-docker.pkg.dev/zenika-hub/us.gcr.io/${{ env.IMAGE_NAME }}
us-docker.pkg.dev/zenika-hub/us.gcr.io/${{ env.IMAGE_VERSIONED_NAME }}
europe-docker.pkg.dev/zenika-hub/eu.gcr.io/${{ env.IMAGE_NAME }}
europe-docker.pkg.dev/zenika-hub/eu.gcr.io/${{ env.IMAGE_VERSIONED_NAME }}
asia-docker.pkg.dev/zenika-hub/asia.gcr.io/${{ env.IMAGE_NAME }}
asia-docker.pkg.dev/zenika-hub/asia.gcr.io/${{ env.IMAGE_VERSIONED_NAME }}
push: true
cache-from: type=gha
cache-to: type=gha

0 comments on commit 2f88c4d

Please sign in to comment.