From a74068c4cbd650a395209044f89891ca4de5882e Mon Sep 17 00:00:00 2001 From: antiyro <74653697+antiyro@users.noreply.github.com> Date: Wed, 2 Oct 2024 14:59:40 +0100 Subject: [PATCH] fix(ci): repair docker build workflow (#300) --- .github/workflows/docker-build.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 927f4e1e5..c0cc9f722 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -1,4 +1,4 @@ -name: Build and Push Docker Image to GitHub Container Registry +name: Build/Push Docker Image to ghcr on: release: @@ -17,7 +17,6 @@ jobs: uses: docker/setup-buildx-action@v2 with: install: true - driver: docker-container - name: Log in to GitHub Container Registry uses: docker/login-action@v2 @@ -26,7 +25,7 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Build and push Docker image to GitHub Container Registry + - name: Build and push Docker image uses: docker/build-push-action@v4 with: context: . @@ -35,11 +34,6 @@ jobs: tags: | ghcr.io/${{ github.repository_owner }}/madara:latest ghcr.io/${{ github.repository_owner }}/madara:${{ github.event.release.tag_name }} - labels: | - org.opencontainers.image.source=${{ github.repository.html_url }} - org.opencontainers.image.version=${{ github.event.release.tag_name }} - cache-from: type=gha - cache-to: type=gha,mode=max - name: Post successful message run: echo "Docker image built and pushed successfully"