Skip to content

Commit

Permalink
gh: update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
wd0517 committed Aug 12, 2024
1 parent 2e05612 commit 92f05b0
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ jobs:
name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
username: ${{ secrets.RELEASE_DOCKERHUB_USERNAME }}
password: ${{ secrets.RELEASE_DOCKERHUB_TOKEN }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -41,7 +40,7 @@ jobs:
platform: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/${{ github.repository }}/backend:${{ inputs.tag || github.ref_name }}
${{ secrets.RELEASE_DOCKERHUB_USERNAME }}/backend:${{ inputs.tag || github.ref_name }}
build-frontend:
name: Build and Push Frontend Image
Expand All @@ -59,9 +58,8 @@ jobs:
name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
username: ${{ secrets.RELEASE_DOCKERHUB_USERNAME }}
password: ${{ secrets.RELEASE_DOCKERHUB_TOKEN }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -74,4 +72,4 @@ jobs:
platform: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/${{ github.repository }}/frontend:${{ inputs.tag || github.ref_name }}
${{ secrets.RELEASE_DOCKERHUB_USERNAME }}/frontend:${{ inputs.tag || github.ref_name }}

0 comments on commit 92f05b0

Please sign in to comment.