Skip to content

Commit

Permalink
upgrade to centralized builder
Browse files Browse the repository at this point in the history
  • Loading branch information
jxmx committed Aug 17, 2024
1 parent 34407da commit 315f580
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 183 deletions.
92 changes: 0 additions & 92 deletions .github/workflows/ephemeral_ec2_run-this.yml

This file was deleted.

60 changes: 0 additions & 60 deletions .github/workflows/ephemeral_ec2_say-this.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/publish_artifacts_to_aptly.yml

This file was deleted.

20 changes: 20 additions & 0 deletions builder/dockerbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ while [[ $# -gt 0 ]]; do
GH_REL="$2"
shift
shift
;;
-r)
APTLY_REPO="asl3-$2"
shift
shift
;;
-*|--*|*)
echo "Unknown option $1"
Expand Down Expand Up @@ -89,3 +94,18 @@ DEBIAN_FRONTEND=noninteractive apt-get -y install gh
gh release upload -R AllStarLink/asl3-pi-appliance $GH_REL $ALL_PKG_ROOT/_debs/*.deb

docker image rm --force $D_TAG

APTLY_USER="${APTLY_API_USER}:${APTLY_API_PASS}"

find $ALL_PKG_ROOT/_debs/*.deb -name "*.deb" | \
xargs -I {} -d '\n' curl --fail --user ${APTLY_USER} \
-X POST -F 'file=@"{}"' \
https://repo-admin.allstarlink.org/api/files/${APTLY_REPO}-${OPERATING_SYSTEMS}

curl --fail --user ${APTLY_USER} -X POST \
https://repo-admin.allstarlink.org/api/repos/${APTLY_REPO}/file/${APTLY_REPO}-${OPERATING_SYSTEMS}

curl --fail --user ${APTLY_USER} -X PUT -H "content-Type: application/json" \
--data "{\"Signing\": {\"Batch\": true, \"Passphrase\": \"${APTLY_GPG_PASSPHRASE}\"}}" \
"https://repo-admin.allstarlink.org/api/publish/:./${OPERATING_SYSTEMS}"

0 comments on commit 315f580

Please sign in to comment.