Skip to content

Commit

Permalink
Combine push-image-ghcr/build-and-push-image job with release/docker-…
Browse files Browse the repository at this point in the history
…hub-release
  • Loading branch information
itskingori committed Oct 16, 2024
1 parent 53b1ca3 commit 75b30c9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 55 deletions.
54 changes: 0 additions & 54 deletions .github/workflows/push-image-ghcr.yml

This file was deleted.

13 changes: 12 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,19 @@ jobs:
docker-hub-release:
needs: github-release
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare image metadata
id: metadata
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE }}
images: |
${{ env.IMAGE }}
ghcr.io/${{ env.IMAGE }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
Expand All @@ -44,6 +49,12 @@ jobs:
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Login to Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build, tag, and push image to Docker Hub
uses: docker/build-push-action@v6
with:
Expand Down

0 comments on commit 75b30c9

Please sign in to comment.