Fix the pipeline...

This commit is contained in:
2019-05-17 22:29:50 +10:00
parent 32d7ad7dbe
commit 56ca73734f
+2 -4
View File
@@ -3,8 +3,6 @@ jobs:
build:
machine:
docker_layer_caching: true
environment:
TAG: 1.0.$CIRCLE_BUILD_NUM
steps:
- checkout
- run:
@@ -19,8 +17,8 @@ jobs:
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker tag wahyd4/aria2-ui:$TAG wahyd4/aria2-ui:latest
docker push wahyd4/aria2-ui:$TAG
docker tag wahyd4/aria2-ui:1.0.$CIRCLE_PREVIOUS_BUILD_NUM wahyd4/aria2-ui:latest
docker push wahyd4/aria2-ui:1.0.$CIRCLE_PREVIOUS_BUILD_NUM
docker push wahyd4/aria2-ui:latest
fi