Skip to content

Commit

Permalink
Merge pull request #695 from intersystems/main-ci-community-download-…
Browse files Browse the repository at this point in the history
…legacy

fix(ci): download legacy artifact from comm. registry instead of github
  • Loading branch information
isc-shuliu authored Jan 8, 2025
2 parents ea5e31b + f5329b1 commit c32ffa5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,11 @@ jobs:
run: |
curl http://localhost:52773/registry/packages/-/all | jq
curl http://localhost:52773/registry/packages/zpm/ | jq
ASSET_NAME='zpm-0.7.4.xml'
ASSET_URL=`wget --header "Authorization: token ${GITHUB_TOKEN}" -qO- https://api.github.com/repos/intersystems/ipm/releases | jq -r ".[].assets[] | select(.name == \"${ASSET_NAME}\") | .browser_download_url"`
wget $ASSET_URL -O /tmp/zpm.xml
CONTAINER=$(docker run --network zpm --rm -d ${{ steps.image.outputs.name }} ${{ steps.image.outputs.flags }})
docker cp /tmp/zpm.xml $CONTAINER:/home/irisowner/zpm.xml
docker cp tests/migration/v0.7-to-v0.9/. $CONTAINER:/tmp/test-package/
sleep 5; docker exec $CONTAINER /usr/irissys/dev/Cloud/ICM/waitISC.sh
docker exec -i $CONTAINER iris session iris -UUSER << EOF
set sc = ##class(%SYSTEM.OBJ).Load("/home/irisowner/zpm.xml", "ck")
s version="0.7.4" s r=##class(%Net.HttpRequest).%New(),r.Server="pm.community.intersystems.com",r.SSLConfiguration="ISC.FeatureTracker.SSL.Config" d r.Get("/packages/zpm/"_version_"/installer"),$system.OBJ.LoadStream(r.HttpResponse.Data,"c")
zpm "list":1
zpm "install dsw":1
zpm "repo -r -name registry -url ""http://registry:52773/registry/"" -username admin -password SYS":1
Expand Down

0 comments on commit c32ffa5

Please sign in to comment.