kanidm/.github/workflows/docker_build_radiusd.yml
dependabot[bot] 99b7d8e297
Bump docker/setup-qemu-action from 1 to 2 (#1059)
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 1 to 2.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-19 07:27:52 +10:00

42 lines
1.2 KiB
YAML

---
name: Container - Radiusd
# this will build regardless,
# but only push to the container registry
# when you're committing on the master branch.
"on":
pull_request:
push:
branches:
- master
jobs:
radius_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- # https://github.com/docker/login-action/#github-container-registry
name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
# don't log in if we're not going to push!
if: ${{ github.ref == 'refs/heads/master' }}
- name: Build and push radius
id: docker_build_radius
uses: docker/build-push-action@v3
with:
push: ${{ github.ref == 'refs/heads/master' }}
platforms: linux/arm64,linux/amd64
# https://github.com/docker/build-push-action/issues/254
tags: ghcr.io/kanidm/radius:devel
context: .
file: kanidm_rlm_python/Dockerfile