mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 12:28:52 +00:00
17 lines
549 B
Bash
Executable file
17 lines
549 B
Bash
Executable file
#!/usr/bin/env bas
|
|
|
|
cat <<EOL > generate-archive.sh
|
|
git remote set-url origin "https://github.com/phpbb/phpbb.git"
|
|
git fetch origin +refs/pull/${PR_NUMBER}/head
|
|
last_commit=\$(git rev-parse FETCH_HEAD)
|
|
echo "\$last_commit" > build/logs/last_commit
|
|
tar --exclude-backups --exclude-vcs --exclude='.git' --exclude='generate-archive.sh' -p -c -z -f source_code.tar.gz *
|
|
EOL
|
|
|
|
docker run \
|
|
--user $(id -u):$(id -g) \
|
|
--volume ${WORKING_DIR}:/data \
|
|
--workdir /data \
|
|
phpbb/build${IMAGES_TAG} sh generate-archive.sh
|
|
|
|
rm generate-archive.sh
|