diff --git a/.woodpecker/docker_server.yml b/.woodpecker/docker_server.yml index 16d991b4d9..d2b8d706b3 100644 --- a/.woodpecker/docker_server.yml +++ b/.woodpecker/docker_server.yml @@ -18,7 +18,7 @@ pipeline: # fi - echo ::set-output name=commit_sha_short::`echo $CI_COMMIT_SHA | cut -c1-7` - > - if [ "${PLATFORM}" = "aarch64" ]; then + if [ "${platform}" = "aarch64" ]; then export VCPKG_FORCE_SYSTEM_BINARIES=true fi - mkdir build @@ -32,9 +32,9 @@ pipeline: commands: - cd build - > - if [ "${PLATFORM}" = "linux/amd64" ]; then + if [ "${platform}" = "linux/amd64" ]; then cmake .. -DSERVER_ONLY=1 -DBUILD_TOOLS=0 -DVIRCADIA_CPU_ARCHITECTURE=-msse3 -DCMAKE_BUILD_TYPE=Release -DVCPKG_BUILD_TYPE=release - elif [ "${PLATFORM}" = "linux/arm64" ]; then + elif [ "${platform}" = "linux/arm64" ]; then cmake .. -DSERVER_ONLY=1 -DBUILD_TOOLS=0 -DVIRCADIA_CPU_ARCHITECTURE= -DCMAKE_BUILD_TYPE=Release -DVCPKG_BUILD_TYPE=release else return 1 @@ -65,14 +65,14 @@ pipeline: image: docker.io/juliangro/overte-server-build:0.1 commands: - > - if [ "${PLATFORM}" = "linux/amd64" ]; then + if [ "${platform}" = "linux/amd64" ]; then echo "Exporting image.." docker image save -o overte-server-PR${CI_COMMIT_PULL_REQUEST}-${CI_COMMIT_SHA:0:7}-amd64.tar overte-org/overte-server:${CI_COMMIT_SHA}_${CI_BUILD_NUMBER} echo "Compressing with xz.." xz -z -T0 overte-server-PR${CI_COMMIT_PULL_REQUEST}-${CI_COMMIT_SHA:0:7}-amd64.tar echo "Done." export "ARTIFACT_PATTERN=overte-server-PR${CI_COMMIT_PULL_REQUEST}-${CI_COMMIT_SHA:0:7}-amd64.tar.xz" - elif [ "${PLATFORM}" = "linux/arm64" ]; then + elif [ "${platform}" = "linux/arm64" ]; then echo "Exporting image.." docker image save -o overte-server-PR${CI_COMMIT_PULL_REQUEST}-${CI_COMMIT_SHA:0:7}-aarch64.tar overte-org/overte-server:${CI_COMMIT_SHA}_${CI_BUILD_NUMBER} echo "Compressing with xz.."