Skip to content

Commit

Permalink
Deploy debs with new Apt server
Browse files Browse the repository at this point in the history
  • Loading branch information
felicianotech committed Feb 15, 2024
1 parent 98847ff commit e9780ff
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,29 @@ jobs:
- ts/install
- ts/connect
- run: |
# Upload the .deb files
# Upload the .deb files - one line per arch type
curl -X POST -F file=@./dist/hubci-arc-${CIRCLE_TAG}-amd64.deb "https://aptly.horse-dragon.ts.net/api/files/arc-${CIRCLE_TAG}"
curl -X POST -F file=@./dist/hubci-arc-${CIRCLE_TAG}-arm64.deb "https://aptly.horse-dragon.ts.net/api/files/arc-${CIRCLE_TAG}"
curl -X POST -F file=@./dist/hubci-arc-${CIRCLE_TAG}-armhf.deb "https://aptly.horse-dragon.ts.net/api/files/arc-${CIRCLE_TAG}"
# Each repo/snapshot below should include the param to not delete the uploaded files except for the last one
# Release packages for Ubuntu 20.04 "Focal"
curl -X POST "https://aptly.horse-dragon.ts.net/api/repos/ftech-ubuntu-focal/file/arc-${CIRCLE_TAG}"
curl -X POST "https://aptly.horse-dragon.ts.net/api/repos/ftech-ubuntu-focal/file/arc-${CIRCLE_TAG}?noRemove=1"
curl -X POST -H 'Content-Type: application/json' --data '{"Name": "ftech-ubuntu-focal--arc-'$CIRCLE_TAG'"}' "https://aptly.horse-dragon.ts.net/api/repos/ftech-ubuntu-focal/snapshots"
curl -X PUT -H 'Content-Type: application/json' --data '{"Snapshots": [{"Component": "main", "Name": "ftech-ubuntu-focal--arc-'$CIRCLE_TAG'"}]}' "https://aptly.horse-dragon.ts.net/api/publish/ftech/ubuntu"
curl -X PUT -H 'Content-Type: application/json' --data '{"Snapshots": [{"Component": "main", "Name": "ftech-ubuntu-focal--arc-'$CIRCLE_TAG'"}]}' "https://aptly.horse-dragon.ts.net/api/publish/filesystem:ftech:ubuntu/focal"
# Release packages for Ubuntu 22.04 "Jammy"
curl -X POST "https://aptly.horse-dragon.ts.net/api/repos/ftech-ubuntu-jammy/file/arc-${CIRCLE_TAG}?noRemove=1"
curl -X POST -H 'Content-Type: application/json' --data '{"Name": "ftech-ubuntu-jammy--arc-'$CIRCLE_TAG'"}' "https://aptly.horse-dragon.ts.net/api/repos/ftech-ubuntu-jammy/snapshots"
curl -X PUT -H 'Content-Type: application/json' --data '{"Snapshots": [{"Component": "main", "Name": "ftech-ubuntu-jammy--arc-'$CIRCLE_TAG'"}]}' "https://aptly.horse-dragon.ts.net/api/publish/filesystem:ftech:ubuntu/jammy"
# Release packages for Ubuntu 23.10 "Mantic"
curl -X POST "https://aptly.horse-dragon.ts.net/api/repos/ftech-ubuntu-mantic/file/arc-${CIRCLE_TAG}?noRemove=1"
curl -X POST -H 'Content-Type: application/json' --data '{"Name": "ftech-ubuntu-mantic--arc-'$CIRCLE_TAG'"}' "https://aptly.horse-dragon.ts.net/api/repos/ftech-ubuntu-mantic/snapshots"
curl -X PUT -H 'Content-Type: application/json' --data '{"Snapshots": [{"Component": "main", "Name": "ftech-ubuntu-mantic--arc-'$CIRCLE_TAG'"}]}' "https://aptly.horse-dragon.ts.net/api/publish/filesystem:ftech:ubuntu/mantic"
# Release packages for Ubuntu "Noble"
curl -X POST "https://aptly.horse-dragon.ts.net/api/repos/ftech-ubuntu-noble/file/arc-${CIRCLE_TAG}"
curl -X POST -H 'Content-Type: application/json' --data '{"Name": "ftech-ubuntu-noble--arc-'$CIRCLE_TAG'"}' "https://aptly.horse-dragon.ts.net/api/repos/ftech-ubuntu-noble/snapshots"
curl -X PUT -H 'Content-Type: application/json' --data '{"Snapshots": [{"Component": "main", "Name": "ftech-ubuntu-noble--arc-'$CIRCLE_TAG'"}]}' "https://aptly.horse-dragon.ts.net/api/publish/filesystem:ftech:ubuntu/noble"

0 comments on commit e9780ff

Please sign in to comment.