Skip to content

Commit

Permalink
add push image to dockerhub
Browse files Browse the repository at this point in the history
  • Loading branch information
YoheiKakiuchi committed Aug 1, 2023
1 parent c669e86 commit 8a9be28
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
# DOCKER_LOCAL: ghcr.io/
# DOCKER_LOCAL: repo.irsl.eiiris.tut.ac.jp/
DOCKER_DEPLOY: repo.irsl.eiiris.tut.ac.jp/
DOCKER_HUB: irslrepo/
steps:
- name: Check out repository code(src)
uses: actions/checkout@v3
Expand All @@ -34,3 +35,13 @@ jobs:
run: |
docker tag actions/browser_vnc:${{ matrix.ubuntu }} ${{ env.DOCKER_DEPLOY }}${{ env.IMAGE_NAME }}:${{ matrix.ubuntu }}
docker push ${{ env.DOCKER_DEPLOY }}${{ env.IMAGE_NAME }}:${{ matrix.ubuntu }}
- name: Log in to Docker Hub
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASS }}
- name: Deploy(HUB)
if: ${{ github.event_name != 'pull_request' }}
run: |
docker push ${{ env.DOCKER_HUB }}${{ env.IMAGE_NAME }}:${{ matrix.ubuntu }}

0 comments on commit 8a9be28

Please sign in to comment.