Commit 831f077c authored by echel0n's avatar echel0n

Update .gitlab-ci.yml

parent 7c6290cb
......@@ -3,7 +3,6 @@ before_script:
variables:
CONTAINER_IMAGE: sickrage/sickrage
CONTAINER_IMAGE_LATEST: sickrage/sickrage:latest
DOCKER_DRIVER: overlay2
DOCKER_HOST: tcp://localhost:2375
......@@ -17,10 +16,10 @@ build:
script:
- echo $CONTAINER_IMAGE
- echo -n $CI_REGISTRY_PASSWORD | docker login -u "$CI_REGISTRY_USER" --password-stdin
- docker build --network host -t $CONTAINER_IMAGE_LATEST .
- docker tag ${CONTAINER_IMAGE}:$(cat sickrage/version.txt) ${CONTAINER_IMAGE_LATEST}
- docker push ${CONTAINER_IMAGE}:$(cat sickrage/version.txt)
- docker push ${CONTAINER_IMAGE_LATEST}
- docker build --network host -t $CONTAINER_IMAGE:$(cat sickrage/version.txt) .
- docker tag $CONTAINER_IMAGE:$(cat sickrage/version.txt) $CONTAINER_IMAGE:latest
- docker push $CONTAINER_IMAGE:$(cat sickrage/version.txt)
- docker push $CONTAINER_IMAGE:latest
only:
- master
except:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment