Skip to content

Commit

Permalink
fix: DockerHubにpushする処理の作成
Browse files Browse the repository at this point in the history
  • Loading branch information
ayutaz committed Dec 2, 2023
1 parent 7afeebf commit 7b6335a
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,16 @@ jobs:
- name: Checkout Repository
uses: actions/[email protected]

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to GitHub Container Registry
uses: docker/[email protected]
- name: Login to Docker Hub
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Build and Push Docker Image
uses: docker/[email protected]
with:
context: .
file: ./Dockerfile
push: true
tags: ghcr.io/your-username/your-repo/your-image-name:latest
tags: midralab/generate-image-api-for-lcm:latest

0 comments on commit 7b6335a

Please sign in to comment.