Skip to content

Commit

Permalink
Merge pull request #13 from moriyalab/support_dockerhub
Browse files Browse the repository at this point in the history
support docker hub
  • Loading branch information
TakanoTaiga authored Dec 6, 2024
2 parents 612dc51 + b1cb314 commit 6d8056d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,20 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Log in to Docker Hub
if: github.event_name == 'push'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build Docker image
run: |
docker build -t ghcr.io/${{ github.repository }}:latest .
# docker build -t ghcr.io/${{ github.repository }}_dev:latest --target builder_image .
# docker build -t ghcr.io/${{ github.repository }}:latest --target release_image .
- name: Push Docker image
if: github.event_name == 'push'
run: |
docker push ghcr.io/${{ github.repository }}:latest
# docker push ghcr.io/${{ github.repository }}_dev:latest
# docker push ghcr.io/${{ github.repository }}:latest
docker build -t ${{ secrets.DOCKER_USERNAME }}/horus_inference_server:latest .
docker push ${{ secrets.DOCKER_USERNAME }}/horus_inference_server:latest

0 comments on commit 6d8056d

Please sign in to comment.