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 390241d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,14 @@ jobs:
docker logs piping
# Delete container
docker rm -f piping
- name: Push if branch is develop
if: github.ref == 'refs/heads/develop'
run: |
set -eu
echo ${{ secrets.DOCKER_HUB_TOKEN }} | docker login -u nwtgck --password-stdin
GIT_BRANCH=${GITHUB_BASE_REF:-${GITHUB_REF#refs/heads/}}
docker tag piping-server-rust nwtgck/piping-server-rust:${GIT_BRANCH}
docker push nwtgck/piping-server-rust:${GIT_BRANCH}
release_if_tag_exits:
needs:
Expand Down

0 comments on commit 390241d

Please sign in to comment.