diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index a89e7fd6..724837aa 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -44,26 +44,13 @@ jobs: type=semver,pattern={{major}}.{{minor}} type=raw,value=latest,enable={{is_default_branch}} - - name: Build and push production image + - name: Build and push image from main uses: docker/build-push-action@v5 with: context: . - target: production platforms: linux/amd64,linux/arm64 push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max - - - name: Build and push development image - uses: docker/build-push-action@v5 - with: - context: . - target: development - platforms: linux/amd64,linux/arm64 - push: ${{ github.event_name != 'pull_request' }} - tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:dev - labels: ${{ steps.meta.outputs.labels }} - cache-from: type=gha - cache-to: type=gha,mode=max \ No newline at end of file