|
4 | 4 |
|
5 | 5 |
|
6 | 6 | aptly: felicianotech/[email protected]
|
| 7 | + |
7 | 8 |
|
8 | 9 | executors:
|
9 | 10 | linux-docker:
|
@@ -81,6 +82,7 @@ workflows:
|
81 | 82 | tags:
|
82 | 83 | # Simplified SemVer regex
|
83 | 84 | only: /^v\d+\.\d+\.\d+$/
|
| 85 | + context: k8s-ctx |
84 | 86 |
|
85 | 87 | jobs:
|
86 | 88 | test:
|
@@ -137,32 +139,19 @@ jobs:
|
137 | 139 | ./dist/arc_darwin_amd64${V1}/arc version
|
138 | 140 | fi
|
139 | 141 | deb-publish:
|
140 |
| - docker: |
141 |
| - - image: cimg/base:2023.07 |
| 142 | + executor: linux-amd64 |
142 | 143 | steps:
|
143 | 144 | - attach_workspace:
|
144 | 145 | 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 |
148 | 148 | - 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 |
| - |
153 |
| - codename: "focal" |
154 |
| - project: "arc" |
155 |
| - - aptly/publish-release: |
156 |
| - |
157 |
| - codename: "jammy" |
158 |
| - project: "arc" |
159 |
| - - aptly/publish-release: |
160 |
| - |
161 |
| - codename: "lunar" |
162 |
| - project: "arc" |
163 |
| - - aptly/publish-release: |
164 |
| - |
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