mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-11 03:11:50 +00:00
github CI: nightly builds for multiple distributions
Since the pipeline changed to use ucuntu22.04 runners, the nighty debian packages do not work on debian buster anymore.
This change updates the pipeline to build for Ubuntu 20.04 and 22.04 as well as for
Debian 10, 11 and 12.
The distribution specific apt sources are as follows:
"deb http://repo.aptly.info/nightly-bookworm bookworm main"
(replace bookworm with focal, buster, bullseye. Install aptly repo key with: curl -fsS https://www.aptly.info/pubkey.txt | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/aptly.gpg)
The builds on focal will also release to the legacy nightly apt repo: https://github.com/aptly-dev/aptly/actions/runs/8723898496/job/23933824692#step:7:24
This only affects nightly builds, for now.
Pipeline example: [](https://github.com/aptly-dev/aptly/actions/runs/8723898496)
This commit is contained in:
61
.github/workflows/ci.yml
vendored
61
.github/workflows/ci.yml
vendored
@@ -89,19 +89,61 @@ jobs:
|
||||
files: coverage.txt
|
||||
|
||||
release:
|
||||
name: release
|
||||
needs: build
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
name: [Ubuntu-20, Ubuntu-22, Debian-10, Debian-11, Debian-12]
|
||||
include:
|
||||
- name: Ubuntu-20
|
||||
image: "ubuntu:20.04"
|
||||
suite: focal
|
||||
GOVER: '1.21'
|
||||
install: "make ca-certificates git curl"
|
||||
- name: Ubuntu-22
|
||||
image: "ubuntu:22.04"
|
||||
suite: jammy
|
||||
install: "make ca-certificates git curl golang"
|
||||
- name: Debian-10
|
||||
image: "debian:buster"
|
||||
suite: buster
|
||||
GOVER: '1.21'
|
||||
install: "make ca-certificates git curl"
|
||||
- name: Debian-11
|
||||
image: "debian:bullseye"
|
||||
suite: bullseye
|
||||
GOVER: '1.21'
|
||||
install: "make ca-certificates git curl"
|
||||
- name: Debian-12
|
||||
image: "debian:bookworm"
|
||||
suite: bookworm
|
||||
install: "make ca-certificates git curl golang"
|
||||
container:
|
||||
image: ${{ matrix.image }}
|
||||
env:
|
||||
APT_LISTCHANGES_FRONTEND: none
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
steps:
|
||||
- name: Install O/S packages
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y --no-install-recommends ${{ matrix.install }}
|
||||
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
||||
echo GOVER: ${{ env.GOVER }}
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
# fetch the whole repot for `git describe` to
|
||||
# fetch the whole repo for `git describe` to
|
||||
# work and get the nightly verion
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v4
|
||||
if: ${{ matrix.GOVER != '' }}
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: ${{ matrix.GOVER }}
|
||||
|
||||
- name: Make Release
|
||||
env:
|
||||
@@ -115,7 +157,7 @@ jobs:
|
||||
APTLY_USER: ${{ secrets.APTLY_USER }}
|
||||
APTLY_PASSWORD: ${{ secrets.APTLY_PASSWORD }}
|
||||
run: |
|
||||
./upload-artifacts.sh nightly
|
||||
./upload-artifacts.sh nightly ${{ matrix.suite }}
|
||||
|
||||
- name: Publish release to aptly
|
||||
if: startsWith(github.event.ref, 'refs/tags')
|
||||
@@ -123,11 +165,4 @@ jobs:
|
||||
APTLY_USER: ${{ secrets.APTLY_USER }}
|
||||
APTLY_PASSWORD: ${{ secrets.APTLY_PASSWORD }}
|
||||
run: |
|
||||
./upload-artifacts.sh release
|
||||
|
||||
- name: Upload artifacts to GitHub Release
|
||||
if: startsWith(github.event.ref, 'refs/tags')
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
body: Release ${{ github.ref }} generated by the CI.
|
||||
files: build/*
|
||||
./upload-artifacts.sh release ${{ matrix.suite }}
|
||||
|
||||
Reference in New Issue
Block a user