From d590878e3feb10837850e46dcad6675fe8d62b78 Mon Sep 17 00:00:00 2001 From: Cody Baker <51133164+CodyCBakerPhD@users.noreply.github.com> Date: Thu, 21 Mar 2024 17:53:17 -0400 Subject: [PATCH] add workflow for YAML alternative --- ..._and_upload_docker_image_yaml_variable.yml | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/build_and_upload_docker_image_yaml_variable.yml diff --git a/.github/workflows/build_and_upload_docker_image_yaml_variable.yml b/.github/workflows/build_and_upload_docker_image_yaml_variable.yml new file mode 100644 index 000000000..110c901a5 --- /dev/null +++ b/.github/workflows/build_and_upload_docker_image_yaml_variable.yml @@ -0,0 +1,31 @@ +name: Build and Upload Docker Image of latest with YAML variable to GHCR + +on: + workflow_run: + workflows: [build_and_upload_docker_image_latest_release] + types: [completed] + workflow_dispatch: + push: # remove after merge; can't trigger manually until on main + +concurrency: # Cancel previous workflows on the same pull request + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + release-image: + name: Build and Upload Docker Image of latest with YAML variable to GHCR + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Build and push YAML variable image based on latest + uses: docker/build-push-action@v5 + with: + push: true # Push is a shorthand for --output=type=registry + tags: ghcr.io/catalystneuro/neuroconv:yaml_variable + context: . + file: dockerfiles/neuroconv_latest_yaml_variable