kanidm/.github/workflows/docker_build_kanidmd.yml
James Hodgkinson b249747e55
.deb packaging config and scripting (#920)
* working on debian builds again
* github actions tweaks
* fixed a ref in the build script
* updating makefile targets to include build profile env
* updates to docs and makefiles
2022-07-20 17:21:40 +10:00

40 lines
1.1 KiB
YAML

---
name: Container - Kanidmd
# 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:
kanidmd_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 }}
- name: Build and push kanidmd
id: docker_build_kanidmd
uses: docker/build-push-action@v3
with:
push: ${{ github.ref == 'refs/heads/master' }}
platforms: linux/amd64
tags: ghcr.io/kanidm/kanidmd:devel
build-args: |
"KANIDM_BUILD_OPTIONS=-j1"
file: kanidmd/Dockerfile