Skip to content

Merge branch 'main' into centos9 #35

Merge branch 'main' into centos9

Merge branch 'main' into centos9 #35

Workflow file for this run

name: Build on Push
on:
push:
branches-ignore:
- main
jobs:
build_and_publish_container:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Determine container name
run: |
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 images
- name: Log into the container registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- run: docker push "${SLUG:?}"