Skip to content

Build Docker image

Build Docker image #42

Workflow file for this run

name: Build Docker image
on:
workflow_dispatch:
inputs:
medplum_version:
description: 'Medplum version (without the "v" - e.g. 2.0.32)'
required: true
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
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
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
build-args: MEDPLUM_VERSION=${{ github.event.inputs.medplum_version }}
tags: ghcr.io/bonfhir/medplum-devbox:latest,ghcr.io/bonfhir/medplum-devbox:v${{ github.event.inputs.medplum_version }}
outputs: type=image,name=target,annotation-index.org.opencontainers.image.source=https://github.com/bonfhir/medplum-devbox,annotation-index.org.opencontainers.image.description=A Medplum docker image that you can use to run your local development against it.