Skip to content

release

release #8

Workflow file for this run

name: release
on: [release]
env:
BUILD_IMAGE: bedasoftware/fhir-sdc
CACHE_IMAGE: bedasoftware/fhir-sdc:latest
jobs:
BuildAndTest:
uses: ./.github/workflows/build-and-test.yml
secrets:
tests_aidbox_license: ${{ secrets.TESTS_AIDBOX_LICENSE }}
Release:
runs-on: ubuntu-latest
steps:
- name: Extract branch name
shell: bash
run: echo "branch=$(echo ${GITHUB_REF#refs/tags/v})" >>$GITHUB_OUTPUT
id: extract_branch
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- run: docker run --rm --privileged tonistiigi/binfmt --install all
- run: >-
docker buildx build --platform linux/arm64,linux/amd64
--cache-from ${{ env.CACHE_IMAGE }} --push
--tag ${{ env.BUILD_IMAGE }}:${{ steps.extract_branch.outputs.branch }} --tag ${{ env.CACHE_IMAGE }} .