Add packages for gRPC, level zero, Riemann. #48
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:?}" |