Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Push docker images on all *-master branch updates #49

Merged
merged 3 commits into from
Sep 30, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,6 @@ workflows:
only:
- master
- main
- /.*-master$/
tags:
only: /^v[0-9].*/
ognots marked this conversation as resolved.
Show resolved Hide resolved
14 changes: 2 additions & 12 deletions scripts/push-docker-tags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,5 @@ pushTag () {
fi
}

if [[ $GIT_TAG =~ ^v[0-9]+ ]]; then
pushTag "$GIT_TAG"
pushTag "latest"

elif [[ $GIT_BRANCH =~ ^(master|main)$ ]]; then
pushTag "$GIT_BRANCH-${DATE_SHORT}-${GIT_SHA1_SHORT}"
pushTag "$GIT_BRANCH-latest"

else
echo "Nothing to do for branch: $GIT_BRANCH, tag: $GIT_TAG"

fi
pushTag "$GIT_BRANCH-${DATE_SHORT}-${GIT_SHA1_SHORT}"
pushTag "$GIT_BRANCH-latest"