Preliminary support for mixed cell type flow (#501) #162
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tag Version Workflow | |
on: | |
push: | |
# Publish `main` as Docker `latest` image. | |
branches: | |
- main | |
# Publish `v1.2.3` tags as releases. | |
tags: | |
- v* | |
jobs: | |
tag-version: | |
# Ensure test job passes before pushing image. | |
strategy: | |
matrix: | |
arch: [ { runson: ubuntu-latest, id: -amd64 } ] | |
compiler: [ { cc: gcc, cxx: g++, id: -gcc } ] | |
indices: [ { index64bit: 0, id: "" } ] | |
runs-on: ${{ matrix.arch.runson }} | |
if: github.event_name == 'push' | |
steps: | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- uses: actions/checkout@v4 | |
- name: Build the docker image | |
run: | | |
ABLATE_DEPENDENCY_IMAGE=ghcr.io/ubchrest/ablate/ablate-dependencies${{matrix.compiler.id}}${{matrix.indices.id}}:latest | |
docker buildx build .\ | |
--file DockerVersionFile \ | |
--tag framework-version-image${{matrix.compiler.id}}${{matrix.indices.id}} \ | |
--build-arg ABLATE_DEPENDENCY_IMAGE=$ABLATE_DEPENDENCY_IMAGE \ | |
--load | |
- name: Get the version from the build file | |
run: echo "VERSION=$(docker run --rm framework-version-image${{matrix.compiler.id}}${{matrix.indices.id}})" >> $GITHUB_ENV | |
- name: set version and push tag | |
id: tag_version | |
uses: mathieudutour/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
custom_tag: ${{env.VERSION}} |