diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6dbd555bf6ba58b01d79673189108776ad36e78a..8615cbbd939cc06f164459c10614e790a9fe61c8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,18 +1,6 @@ variables: DOCKER_HUB_REPO: libresh/rocketchat -test: - tags: - - build - image: - name: gcr.io/kaniko-project/executor:debug - entrypoint: [""] - script: - - export VERSION=`wget -qO- https://api.github.com/repos/RocketChat/Rocket.Chat/tags | grep name | cut -d'"' -f4 | grep -v "rc\|develop\|\.0" | head -n1` - - /kaniko/executor --context . --no-push --build-arg VERSION=$VERSION - except: - - master - build: tags: - build @@ -20,9 +8,7 @@ build: name: gcr.io/kaniko-project/executor:debug entrypoint: [""] script: + - export VERSION=4.2.0 - cp $DOCKER_SECRET_CONFIG /kaniko/.docker/config.json - - export VERSION=`wget -qO- https://api.github.com/repos/RocketChat/Rocket.Chat/tags | grep name | cut -d'"' -f4 | grep -v "rc\|develop\|\.0" | head -n1` - export DESTINATION="--destination ${DOCKER_HUB_REPO}:${VERSION} --destination ${DOCKER_HUB_REPO}:latest" - /kaniko/executor --context . ${DESTINATION} --build-arg VERSION=$VERSION - only: - - master