Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: publish deb pkgs to repository #131

Merged
merged 1 commit into from
Feb 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,15 @@ workflows:
paths:
- "dist"
context: main
- deb-publish:
requires:
- gor/release
filters:
branches:
ignore: /.*/
tags:
# Simplified SemVer regex
only: /^v\d+\.\d+\.\d+$/

jobs:
test:
Expand Down Expand Up @@ -180,3 +189,28 @@ jobs:
echo ""
exit 1
fi
deb-publish:
docker:
- image: cimg/base:current
steps:
- attach_workspace:
at: .
- add_ssh_keys
- run: |
echo 'pkg.atl.revidian.net ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBE16slz1okRPeUhxIpzBCn9rHqjk51ylxEYlYXvblswcxOQ0rPyAX6N8Bd2pnsh99xce/jaX2KJHPLPCc+zAXTg= root@li361-16' >> ~/.ssh/known_hosts
- run: |
ssh pkg@pkg.atl.revidian.net "mkdir ~/incoming/sonar-${CIRCLE_TAG}"
scp ./dist/*.deb pkg@pkg.atl.revidian.net:incoming/sonar-${CIRCLE_TAG}/

# Ubuntu 20.04 Focal
ssh pkg@pkg.atl.revidian.net "aptly repo add ftech-ubuntu-focal ~/incoming/sonar-${CIRCLE_TAG}/"
ssh pkg@pkg.atl.revidian.net "aptly snapshot create ftech-ubuntu-focal--sonar-${CIRCLE_TAG} from repo ftech-ubuntu-focal"
ssh pkg@pkg.atl.revidian.net "aptly publish switch focal filesystem:ftech:/ubuntu ftech-ubuntu-focal--sonar-${CIRCLE_TAG}"


# Ubuntu 21.10 Impish
ssh pkg@pkg.atl.revidian.net "aptly repo add ftech-ubuntu-impish ~/incoming/sonar-${CIRCLE_TAG}/"
ssh pkg@pkg.atl.revidian.net "aptly snapshot create ftech-ubuntu-impish--sonar-${CIRCLE_TAG} from repo ftech-ubuntu-impish"
ssh pkg@pkg.atl.revidian.net "aptly publish switch impish filesystem:ftech:/ubuntu ftech-ubuntu-impish--sonar-${CIRCLE_TAG}"

ssh pkg@pkg.atl.revidian.net "rm -r ~/incoming/sonar-${CIRCLE_TAG}"