Skip to content

Commit

Permalink
ci: docker push if branch is develop
Browse files Browse the repository at this point in the history
  • Loading branch information
nwtgck committed Nov 8, 2022
1 parent 45f968a commit 4cd7604
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,13 @@ jobs:
docker logs piping
# Delete container
docker rm -f piping
- name: Push if branch is develop
if: github.ref == 'ref/head/develop'
run: |
set -eu
echo ${{ secrets.DOCKER_HUB_TOKEN }} | docker login -u nwtgck --password-stdin
docker tag piping-server-rust nwtgck/piping-server-rust:${{ github.ref_name }}
docker push nwtgck/piping-server-rust:${{ github.ref_name }}
release_if_tag_exits:
needs:
Expand Down

0 comments on commit 4cd7604

Please sign in to comment.