Skip to content

Commit

Permalink
Allow tagging of built image from forks
Browse files Browse the repository at this point in the history
  • Loading branch information
impactmass committed Mar 8, 2018
1 parent 489510b commit 0a820b5
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,11 @@ jobs:
- run:
name: Tag Docker Image
command: |
if [ -z "$CIRCLE_PR_USERNAME" ]; then \
cat docker-cache/docker-tags.txt \
| xargs -t -I % \
docker tag \
"$DOCKER_REPOSITORY:$CIRCLE_SHA1" \
"$DOCKER_REPOSITORY:%"
else
echo "No tagging for forks"
fi
cat docker-cache/docker-tags.txt \
| xargs -t -I % \
docker tag \
"$DOCKER_REPOSITORY:$CIRCLE_SHA1" \
"$DOCKER_REPOSITORY:%"
- run:
name: Docker Push
command: |
Expand Down

0 comments on commit 0a820b5

Please sign in to comment.