Commit bc472ccf authored by echel0n's avatar echel0n
Browse files

Update .gitlab-ci.yml

parent bdf23cb9
......@@ -6,15 +6,12 @@ services:
before_script:
- apk add --no-cache py-pip
- pip install docker-compose
- echo -n "$CI_REGISTRY_PASSWORD" | docker login -u "$CI_REGISTRY_USER" --password-stdin
- echo -n $CI_REGISTRY_PASSWORD | docker login -u "$CI_REGISTRY_USER" --password-stdin
build-master:
stage: build
script:
- docker build \
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
--build-arg VERSION=`cat sickrage/version.txt` \
--squash --pull -t "sickrage/sickrage:latest" .
- docker build --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` --build-arg VERSION=`cat sickrage/version.txt` --squash --pull -t sickrage/sickrage:latest .
- docker push "sickrage/sickrage:latest"
only:
- master
......@@ -24,11 +21,8 @@ build-master:
build-dev:
stage: build
script:
- docker build \
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
--build-arg VERSION=`cat sickrage/version.txt` \
--squash --pull -t "sickrage/sickrage:$CI_COMMIT_REF_SLUG" .
- docker push "sickrage/sickrage:$CI_COMMIT_REF_SLUG"
- docker build --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` --build-arg VERSION=`cat sickrage/version.txt` --squash --pull -t sickrage/sickrage:$CI_COMMIT_REF_SLUG .
- docker push sickrage/sickrage:$CI_COMMIT_REF_SLUG
except:
- master
- tags
\ No newline at end of file
Supports Markdown
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