kanidm/.github/workflows/docker_build_kanidm.yml
dependabot[bot] 24a9d5ca0d
Bump docker/build-push-action from 2 to 3 (#899)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 2 to 3.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v2...v3)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-05 17:34:23 +10:00

50 lines
1.4 KiB
YAML

---
name: Container - Kanidm
# 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:
kanidm_build:
runs-on: ubuntu-latest
continue-on-error: true # yolo
strategy:
fail-fast: false
matrix:
target:
- linux/arm64
- linux/amd64
if: github.event_name == 'push'
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_kanidm
uses: docker/build-push-action@v3
with:
push: ${{ github.ref == 'refs/heads/master' }}
platforms: ${{matrix.target}}
# https://github.com/docker/build-push-action/issues/254
tags: ghcr.io/kanidm/kanidm:devel
build-args: |
"KANIDM_FEATURES="
"KANIDM_BUILD_OPTIONS=-j1"
file: kanidm_tools/Dockerfile