Files
micromdm/.github/workflows/docker.yml
dependabot[bot] cf88fa3041 Bump actions/checkout from 4.2.1 to 4.2.2 (#1038)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.1 to 4.2.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](eef61447b9...11bd71901b)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-16 23:39:59 -08:00

34 lines
1.1 KiB
YAML

name: Publish Docker image
on:
release:
types: [published]
jobs:
push_to_registry:
name: Build and push Docker image
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Set up QEMU for multi-architecture builds
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf #v3.2.0
with:
image: tonistiigi/binfmt:latest
platforms: all
- name: Check out this repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Login to Github Packages Container registry with ephemeral token
run: docker login ghcr.io --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }}
- name: Create builder instance
run: docker buildx create --use
- name: Build and push image
run: |
docker buildx build \
--platform linux/amd64,linux/arm,linux/arm64 \
--tag ghcr.io/micromdm/micromdm:latest \
--tag ghcr.io/micromdm/micromdm:${{ github.event.release.tag_name }} \
--push \
.