Skip to content

Commit

Permalink
Merge branch 'main' into focal_amd64
Browse files Browse the repository at this point in the history
  • Loading branch information
octo committed Nov 24, 2023
2 parents 52131e7 + 8a48321 commit 3e25ff7
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 21 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/daily-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ jobs:
matrix:
branch:
- sid_amd64
- fedora34_x86_64
- fedora38_x86_64
- fedora_rawhide_x86_64

env:
SLUG: "collectd/ci:${{ matrix.branch }}"
Expand Down
22 changes: 9 additions & 13 deletions .github/workflows/merge-jobs.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,27 @@
name: Merge jobs
name: Build on Push

on:
push:
branches-ignore:
- main
# topic branches (e.g. fix/something)
- '**/**'

jobs:
build_and_publish_container:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get branch name
- uses: actions/checkout@v4
- name: Determine container name
run: |
export BRANCH="$(${{ github.ref }} | rev | cut -d '/' -f1 | rev )
- run:
export SLUG="collectd/ci:${BRANCH}"
branch="$(sed -e 's#refs/heads/##' <<<"${{ github.ref }}")"
echo "SLUG=collectd/ci:${branch:?}" >>"${GITHUB_ENV}"
- name: Build container
run:
docker build --pull -t "${SLUG}" .
- run: docker inspect "${SLUG}"
- run: docker history "${SLUG}"
run: docker build --pull -t "${SLUG:?}" .
- run: docker inspect "${SLUG:?}"
- run: docker history "${SLUG:?}"
- run: docker images
- name: Log into the container registry
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- run: docker push "${SLUG}"
- run: docker push "${SLUG:?}"
16 changes: 12 additions & 4 deletions .github/workflows/pr-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,24 @@ jobs:
SLUG: "collectd/ci:test"
VALGRIND_OPTS: "--errors-for-leak-kinds=definite"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Build container
run: docker build -t "${SLUG}" .
- run: docker inspect "${SLUG}"
- name: Inspect container
run: docker inspect "${SLUG}"
- name: Check out the latest verison of collectd
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: collectd/collectd
ref: main
path: ${{ github.workspace }}/collectd
- name: Create the test container
run: |
docker run -itd --name collectd-pr-test -v "${GITHUB_WORKSPACE}/collectd:/collectd" -w /collectd "${SLUG}"
- name: Make sure collectd builds on the container
run: |
docker run -v "${GITHUB_WORKSPACE}/collectd:/collectd" -e VALGRIND_OPTS=${VALGRIND_OPTS} -w /collectd "${SLUG}" bash -c './build.sh && ./configure && make && make check'
docker exec -w /collectd collectd-pr-test bash -c './build.sh && ./configure && make -sk'
- name: Run collectd unit tests
continue-on-error: true
run: |
docker exec -w /collectd collectd-pr-test make check
11 changes: 8 additions & 3 deletions .github/workflows/weekly-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,25 @@ jobs:
matrix:
branch:
# Debian
# Debian 12
- bookworm_amd64
# Debian 11
- bullseye_amd64
# Debian 10
- buster_amd64
# Ubuntu
# Ubuntu 20.04
- focal_amd64
# Ubuntu 18.04
- bionic_amd64
# Ubuntu 16.04
- xenial_amd64
# Ubuntu 14.04
- trusty_amd64
# Fedora
- fedora34_x86_64
- fedora36_x86_64
# CentOS
- el7_x86_64
- el8_x86_64
- el9_x86_64

env:
SLUG: "collectd/ci:${{ matrix.branch }}"
Expand Down

0 comments on commit 3e25ff7

Please sign in to comment.