Skip to content

Commit

Permalink
fix(ci): repair docker build workflow (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
antiyro authored Oct 2, 2024
1 parent 80038d5 commit a74068c
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Push Docker Image to GitHub Container Registry
name: Build/Push Docker Image to ghcr

on:
release:
Expand All @@ -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
Expand All @@ -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: .
Expand All @@ -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"

0 comments on commit a74068c

Please sign in to comment.