Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Commit

Permalink
change: docker registry
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshihiro-shu committed Apr 28, 2024
1 parent 06e6233 commit a4d5573
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/docker-app-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ jobs:
name: Checkout
uses: actions/checkout@v3
-
name: Login to Docker Hub
name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand All @@ -41,4 +42,4 @@ jobs:
platforms: linux/amd64,linux/arm64
file: ./Dockerfile
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/draft-backend:${{ env.DOCKER_TAG }}
tags: ghcr.io/${{ github.actor }}/tech-blog-backend:${{ env.DOCKER_TAG }}
9 changes: 5 additions & 4 deletions .github/workflows/docker-batch-qiita.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ jobs:
name: Checkout
uses: actions/checkout@v3
-
name: Login to Docker Hub
name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand All @@ -41,4 +42,4 @@ jobs:
platforms: linux/amd64,linux/arm64
file: ./batch/qiita/Dockerfile
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/draft-batch-qiita:${{ env.DOCKER_TAG }}
tags: ghcr.io/${{ github.actor }}/tech-blog-backend-batch-qiita:${{ env.DOCKER_TAG }}
10 changes: 5 additions & 5 deletions .github/workflows/docker-migration-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ jobs:
name: Checkout
uses: actions/checkout@v3
-
name: Login to Docker Hub
name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand All @@ -40,6 +41,5 @@ jobs:
context: ./migrations
platforms: linux/amd64,linux/arm64
file: ./migrations/Dockerfile

push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/draft-migration:${{ env.DOCKER_TAG }}
tags: ghcr.io/${{ github.actor }}/tech-blog-backend-migration:${{ env.DOCKER_TAG }}

0 comments on commit a4d5573

Please sign in to comment.