Commit 2359d58b authored by José Henrique's avatar José Henrique
Browse files

Cleanup

parent 6aa16da9
......@@ -16,13 +16,11 @@ build:
rm -rf .git
git clone https://github.com/PixelExperience/official_devices
if [ -n "$GIT_PR_NUMBER" ]; then
cd official_devices
git fetch origin "pull/$GIT_PR_NUMBER/head"
git checkout FETCH_HEAD
cd ..
git -C official_devices fetch origin "pull/$GIT_PR_NUMBER/head"
git -C official_devices checkout FETCH_HEAD
fi
docker build --no-cache -t official_devices_ci:latest ./
docker run -e RUBYOPT='-W0' -e TELEGRAM_TOKEN=${TELEGRAM_TOKEN} -e GH_PERSONAL_TOKEN=${GH_PERSONAL_TOKEN} -e GIT_PR_NUMBER=${GIT_PR_NUMBER} -e BUILD_URL=${CI_JOB_URL} official_devices_ci:latest
docker run -e RUBYOPT='-W0' -e TELEGRAM_TOKEN=${TELEGRAM_TOKEN} -e GH_PERSONAL_TOKEN=${GH_PERSONAL_TOKEN} -e GIT_PR_NUMBER=${GIT_PR_NUMBER} official_devices_ci:latest
only:
- triggers
- web
......
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