From 176ff94497449fbd86302a782938b4f764436a39 Mon Sep 17 00:00:00 2001 From: Bohdan Kucherivayi Date: Wed, 14 Feb 2024 00:15:14 +0200 Subject: [PATCH] fix: production build workflow --- .github/workflows/production-image.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/production-image.yml b/.github/workflows/production-image.yml index c4c1a98a..8aaae7fa 100644 --- a/.github/workflows/production-image.yml +++ b/.github/workflows/production-image.yml @@ -2,7 +2,7 @@ name: Create and publish a Docker image on: push: - branches: ['production'] + branches: ["production"] env: REGISTRY: ghcr.io @@ -21,22 +21,18 @@ jobs: uses: actions/checkout@v4 - name: Log in to the Container registry - uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 + uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Extract metadata (tags, labels) for Docker - id: meta - uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 - with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 - - name: Build and push Docker image - uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 + - name: Bake and push + uses: docker/bake-action@v4 with: - context: . + targets: default + no-cache: true push: true - tags: ghcr.io/zapal-tech/erp:latest - labels: ${{ steps.meta.outputs.labels }}