Skip to content

Commit

Permalink
Use Aptly orb (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
FelicianoTech authored Jun 19, 2023
1 parent fe7a45c commit b8c9f6c
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ version: 2.1
orbs:
gor: hubci/[email protected]
osd: hubci/[email protected]
aptly: felicianotech/[email protected]

executors:
linux-docker:
Expand Down Expand Up @@ -147,25 +148,25 @@ jobs:
- run: |
ssh [email protected] "mkdir ~/incoming/arc-${CIRCLE_TAG}"
scp ./dist/*.deb [email protected]:incoming/arc-${CIRCLE_TAG}/
# Ubuntu 20.04 Focal
ssh [email protected] "aptly repo add ftech-ubuntu-focal ~/incoming/arc-${CIRCLE_TAG}/"
ssh [email protected] "aptly snapshot create ftech-ubuntu-focal--arc-${CIRCLE_TAG} from repo ftech-ubuntu-focal"
ssh [email protected] "aptly publish switch focal filesystem:ftech:/ubuntu ftech-ubuntu-focal--arc-${CIRCLE_TAG}"
# Ubuntu 22.04 Jammy
ssh [email protected] "aptly repo add ftech-ubuntu-jammy ~/incoming/arc-${CIRCLE_TAG}/"
ssh [email protected] "aptly snapshot create ftech-ubuntu-jammy--arc-${CIRCLE_TAG} from repo ftech-ubuntu-jammy"
ssh [email protected] "aptly publish switch jammy filesystem:ftech:/ubuntu ftech-ubuntu-jammy--arc-${CIRCLE_TAG}"
# Ubuntu 22.10 Kinetic
ssh [email protected] "aptly repo add ftech-ubuntu-kinetic ~/incoming/arc-${CIRCLE_TAG}/"
ssh [email protected] "aptly snapshot create ftech-ubuntu-kinetic--arc-${CIRCLE_TAG} from repo ftech-ubuntu-kinetic"
ssh [email protected] "aptly publish switch kinetic filesystem:ftech:/ubuntu ftech-ubuntu-kinetic--arc-${CIRCLE_TAG}"
# Ubuntu Lunar
ssh [email protected] "aptly repo add ftech-ubuntu-lunar ~/incoming/arc-${CIRCLE_TAG}/"
ssh [email protected] "aptly snapshot create ftech-ubuntu-lunar--arc-${CIRCLE_TAG} from repo ftech-ubuntu-lunar"
ssh [email protected] "aptly publish switch lunar filesystem:ftech:/ubuntu ftech-ubuntu-lunar--arc-${CIRCLE_TAG}"
- aptly/publish-release:
hostname: "[email protected]"
codename: "focal"
project: "arc"
- aptly/publish-release:
hostname: "[email protected]"
codename: "jammy"
project: "arc"
- aptly/publish-release:
hostname: "[email protected]"
codename: "focal"
project: "arc"
- aptly/publish-release:
hostname: "[email protected]"
codename: "kinetic"
project: "arc"
- aptly/publish-release:
hostname: "[email protected]"
codename: "lunar"
project: "arc"
- run: |
ssh [email protected] "rm -r ~/incoming/arc-${CIRCLE_TAG}"

0 comments on commit b8c9f6c

Please sign in to comment.