Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit a770f07

Browse files
committed
🚑 🚀 Fixes issue with CircleCI not being on the master branch on building a tagged release
1 parent 6cce3fb commit a770f07

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.circleci/config.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- run:
3333
name: Tag resulting build image
3434
command: |
35-
if [ "${CIRCLE_BRANCH}" = "master" ] && [ ! -z "${CIRCLE_TAG:-}" ];
35+
if [ ! -z "${CIRCLE_TAG:-}" ];
3636
then
3737
docker tag hassioaddons/qemu-user-static:test "hassioaddons/qemu-user-static:${CIRCLE_TAG:-}"
3838
docker tag hassioaddons/qemu-user-static:test hassioaddons/qemu-user-static:latest
@@ -49,15 +49,15 @@ jobs:
4949
command: |
5050
if [ "${CIRCLE_BRANCH}" = "master" ]; then
5151
docker push hassioaddons/qemu-user-static:test
52-
if [ ! -z "${CIRCLE_TAG:-}" ]; then
53-
docker push "hassioaddons/qemu-user-static:${CIRCLE_TAG:-}"
54-
docker push hassioaddons/qemu-user-static:latest
55-
fi
52+
fi
53+
if [ ! -z "${CIRCLE_TAG:-}" ]; then
54+
docker push "hassioaddons/qemu-user-static:${CIRCLE_TAG:-}"
55+
docker push hassioaddons/qemu-user-static:latest
5656
fi
5757
- run:
5858
name: Pack & release binaries on GitHub
5959
command: |
60-
if [ "${CIRCLE_BRANCH}" = "master" ] && [ ! -z "${CIRCLE_TAG:-}" ];
60+
if [ ! -z "${CIRCLE_TAG:-}" ];
6161
then
6262
cd build
6363
for file in $FILES; do

0 commit comments

Comments
 (0)