2022-06-20 12:16:55 +02:00
|
|
|
---
|
|
|
|
name: Container - Radiusd
|
|
|
|
|
|
|
|
# this will build regardless,
|
|
|
|
# but only push to the container registry
|
|
|
|
# when you're committing on the master branch.
|
|
|
|
|
|
|
|
"on":
|
2022-06-21 02:16:00 +02:00
|
|
|
pull_request:
|
2022-06-20 12:16:55 +02:00
|
|
|
push:
|
2022-06-21 02:16:00 +02:00
|
|
|
branches:
|
|
|
|
- master
|
2022-06-20 12:16:55 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
radius_build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v1
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
- # https://github.com/docker/login-action/#github-container-registry
|
|
|
|
name: Login to GitHub Container Registry
|
|
|
|
uses: docker/login-action@v1
|
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
username: ${{ github.repository_owner }}
|
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Build and push radius
|
|
|
|
id: docker_build_radius
|
2022-07-05 09:34:23 +02:00
|
|
|
uses: docker/build-push-action@v3
|
2022-06-20 12:16:55 +02:00
|
|
|
with:
|
|
|
|
push: ${{ github.ref == 'refs/heads/master' }}
|
2022-07-20 09:21:40 +02:00
|
|
|
platforms: linux/arm64,linux/amd64
|
2022-06-20 12:16:55 +02:00
|
|
|
# https://github.com/docker/build-push-action/issues/254
|
|
|
|
tags: ghcr.io/kanidm/radius:devel
|
|
|
|
context: .
|
|
|
|
file: kanidm_rlm_python/Dockerfile
|