Skip to content

Commit

Permalink
Merge pull request #330 from fnaranjo-vmw/patch-1
Browse files Browse the repository at this point in the history
Disable MacStadium releases
  • Loading branch information
Peter Eltgroth authored Jun 16, 2023
2 parents eb878d0 + 1e8db6f commit abeca18
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions ci/pipeline.yml.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,6 @@ jobs:
outputs:
- name: tile-generator-dist
- name: tile-generator-dist-release
params:
mac_ip: ((macstadium.ip))
mac_ssh_key: ((macstadium.ssh_key))
run:
path: bash
args:
Expand All @@ -257,10 +254,7 @@ jobs:
command -v objcopy >/dev/null 2>&1 && command -v git >/dev/null 2>&1 || apt install --yes binutils git
apt install patchelf

# MacStadium is a Mac as a Service provider that we used to build the Mac binary for tile generator
cd tile-generator-repo
echo "$mac_ssh_key" > mac_ssh_key
chmod 600 mac_ssh_key

function build(){
rm -rf dist*
Expand All @@ -278,26 +272,10 @@ jobs:
done
}

function build-remote(){
SKIP_SDIST='true'
HEAD="$HEAD"
ssh -oStrictHostKeyChecking=no -i mac_ssh_key -t "administrator@${mac_ip}" "$(typeset -f build)
VERSION="$VERSION"
FINAL_VERSION="$FINAL_VERSION"
cd tile-generator
git fetch origin
git reset --hard "$HEAD"
build
rm -rf dist/
"
scp -oStrictHostKeyChecking=no -i mac_ssh_key -r "administrator@${mac_ip}":tile-generator/dist* .
}

VERSION=`cat ../version/version`
FINAL_VERSION=`cat ../final-version/version`
build
HEAD=`git log --pretty=format:'%h' -n 1`
build-remote

cp dist-"$VERSION"/* ../tile-generator-dist/
tar -cvzf ../tile-generator-dist-release/bundle-"$VERSION".tar.gz dist-"$FINAL_VERSION"/*
Expand Down

0 comments on commit abeca18

Please sign in to comment.