phpbb/docker/scripts/jobs/build/fetch-pr.sh
2016-02-02 11:29:52 +01:00

12 lines
404 B
Bash
Executable file

#!/usr/bin/env bash
docker run \
--user $(id -u):$(id -g) \
--volume ${WORKING_DIR}:/data \
--workdir /data \
phpbb/build${IMAGES_TAG} sh -c '
git config user.email "no-reply@phpbb.com" &&
git config user.name "phpBB CI" &&
git remote set-url origin "https://github.com/phpbb/phpbb.git" &&
git fetch origin +refs/pull/'${PR_NUMBER}'/merge &&
git checkout FETCH_HEAD'