mirror of
https://github.com/Xahau/xahaud.git
synced 2026-04-29 15:37:46 +00:00
* Update build-in-docker.yml * Update build-in-docker.yml * Update build-in-docker.yml * Update build-core.sh * update workflow * Update build-core.sh * Update build-core.sh * Update build-core.sh * Update build-core.sh * update workflow * fix workflow * Update xahaud.binary.dockerfile * fixup * fixup * fixup * fixup * fixup * fixup * Update build-in-docker.yml
17 lines
608 B
Bash
Executable File
17 lines
608 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
umask 0000;
|
|
|
|
# Create a temporary container
|
|
container_id=$(docker create transia/xahaud-binary:$3)
|
|
|
|
# Copy the xahaud and release.info files from the container to the host
|
|
docker cp $container_id:/io/release-build/xahaud /data/builds/$(date +%Y).$(date +%-m).$(date +%-d)-$1+$2
|
|
docker cp $container_id:/io/release-build/release.info /data/builds/$(date +%Y).$(date +%-m).$(date +%-d)-$1+$2.releaseinfo
|
|
|
|
# Remove the temporary container
|
|
docker rm $container_id
|
|
|
|
# Print the published build
|
|
echo "Published build to: http://build.xahau.tech/"
|
|
echo $(date +%Y).$(date +%-m).$(date +%-d)-$1+$2 |