From f78af752f30d6b80e73b048fd41704e0d23ab95b Mon Sep 17 00:00:00 2001 From: Malte Hansen Date: Wed, 13 Nov 2024 18:06:25 +0100 Subject: [PATCH] Publish multi-arch images without auth0 --- .github/workflows/deploy-docker.yml | 31 +++++------------------------ 1 file changed, 5 insertions(+), 26 deletions(-) diff --git a/.github/workflows/deploy-docker.yml b/.github/workflows/deploy-docker.yml index aed2a4c65..d56e5762e 100644 --- a/.github/workflows/deploy-docker.yml +++ b/.github/workflows/deploy-docker.yml @@ -1,4 +1,4 @@ -name: CI Pipeline +name: Docker Hub Pipeline on: push: @@ -83,6 +83,7 @@ jobs: needs: [test, linting] env: VERSION_TAG: ${{ github.ref_name }}-${{ github.sha }} + AUTH0_ENABLED: 'false' steps: - name: Checkout repository uses: actions/checkout@v4 @@ -114,9 +115,6 @@ jobs: runs-on: ubuntu-latest needs: [build] if: github.event_name == 'push' && github.ref == 'refs/heads/main' - strategy: - matrix: - platform: [linux/amd64, linux/arm64] steps: - name: Checkout repository uses: actions/checkout@v4 @@ -132,28 +130,9 @@ jobs: with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - - name: Build and push Docker image (amd64) + - name: Build and push multi-arch Docker image run: | - export PLATFORM=$(echo ${{ matrix.platform }} | cut -d'/' -f2) docker buildx build \ - --platform ${{ matrix.platform }} \ - --tag ${{ vars.DOCKER_IMAGE_NAME }}:$PLATFORM . \ + --platform linux/amd64,linux/arm64 \ + --tag ${{ vars.DOCKER_IMAGE_NAME }}:latest . \ --push - - publish-multi-arch: - runs-on: ubuntu-latest - needs: [build-and-deploy] - steps: - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - name: Log in to Docker Container Registry - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - name: Publish multi-arch image - run: | - docker buildx imagetools create \ - -t ${{ vars.DOCKER_IMAGE_NAME }}:latest \ - ${{ vars.DOCKER_IMAGE_NAME }}:amd64 \ - ${{ vars.DOCKER_IMAGE_NAME }}:arm64