Skip to content

Merge branch 'main' into bookworm_amd64 #1

Merge branch 'main' into bookworm_amd64

Merge branch 'main' into bookworm_amd64 #1

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: Get branch name
run: |
export BRANCH="$(${{ github.ref }} | rev | cut -d '/' -f1 | rev )
- run:
export SLUG="collectd/ci:${BRANCH}"
- 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@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- run: docker push "${SLUG}"