Skip to content

Commit 98847ff

Browse files
author
Ricardo N Feliciano
committed
Deploy debs with new Apt server
1 parent 9858e1b commit 98847ff

File tree

1 file changed

+14
-25
lines changed

1 file changed

+14
-25
lines changed

.circleci/config.yml

+14-25
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ orbs:
44
gor: hubci/[email protected]
55
osd: hubci/[email protected]
66
aptly: felicianotech/[email protected]
7+
78

89
executors:
910
linux-docker:
@@ -81,6 +82,7 @@ workflows:
8182
tags:
8283
# Simplified SemVer regex
8384
only: /^v\d+\.\d+\.\d+$/
85+
context: k8s-ctx
8486

8587
jobs:
8688
test:
@@ -137,32 +139,19 @@ jobs:
137139
./dist/arc_darwin_amd64${V1}/arc version
138140
fi
139141
deb-publish:
140-
docker:
141-
- image: cimg/base:2023.07
142+
executor: linux-amd64
142143
steps:
143144
- attach_workspace:
144145
at: .
145-
- add_ssh_keys
146-
- run: |
147-
echo 'pkg.atl.revidian.net ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBE16slz1okRPeUhxIpzBCn9rHqjk51ylxEYlYXvblswcxOQ0rPyAX6N8Bd2pnsh99xce/jaX2KJHPLPCc+zAXTg= root@li361-16' >> ~/.ssh/known_hosts
146+
- ts/install
147+
- ts/connect
148148
- run: |
149-
ssh [email protected] "mkdir ~/incoming/arc-${CIRCLE_TAG}"
150-
scp ./dist/*.deb [email protected]:incoming/arc-${CIRCLE_TAG}/
151-
- aptly/publish-release:
152-
hostname: "[email protected]"
153-
codename: "focal"
154-
project: "arc"
155-
- aptly/publish-release:
156-
hostname: "[email protected]"
157-
codename: "jammy"
158-
project: "arc"
159-
- aptly/publish-release:
160-
hostname: "[email protected]"
161-
codename: "lunar"
162-
project: "arc"
163-
- aptly/publish-release:
164-
hostname: "[email protected]"
165-
codename: "mantic"
166-
project: "arc"
167-
- run: |
168-
ssh [email protected] "rm -r ~/incoming/arc-${CIRCLE_TAG}"
149+
# Upload the .deb files
150+
curl -X POST -F file=@./dist/hubci-arc-${CIRCLE_TAG}-amd64.deb "https://aptly.horse-dragon.ts.net/api/files/arc-${CIRCLE_TAG}"
151+
curl -X POST -F file=@./dist/hubci-arc-${CIRCLE_TAG}-arm64.deb "https://aptly.horse-dragon.ts.net/api/files/arc-${CIRCLE_TAG}"
152+
curl -X POST -F file=@./dist/hubci-arc-${CIRCLE_TAG}-armhf.deb "https://aptly.horse-dragon.ts.net/api/files/arc-${CIRCLE_TAG}"
153+
154+
# Release packages for Ubuntu 20.04 "Focal"
155+
curl -X POST "https://aptly.horse-dragon.ts.net/api/repos/ftech-ubuntu-focal/file/arc-${CIRCLE_TAG}"
156+
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"
157+
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"

0 commit comments

Comments
 (0)