Skip to content

Add workflow to build/push docker image #1

Add workflow to build/push docker image

Add workflow to build/push docker image #1

---

Check failure on line 1 in .github/workflows/Docker-build-release.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/Docker-build-release.yaml

Invalid workflow file

`workflow-dispatch` is not a valid event name
# Only rebuild when changes to the run-nextflow-tests/ folder are pushed to
# main
on:
workflow-dispatch:
push:
branches:
- main
- nwiltsie-nextflow-regression-action
paths:
- 'run-nextflow-tests/*'
jobs:
build-and-push-image:
runs-on: ubuntu-latest
name: A job to build and push a docker image
permissions:
contents: read
packages: write
steps:
- id: getversion
uses: jbutcher5/[email protected]
with:
file: run-nextflow-tests/docker-metadata.yaml
key-path: '["nextflow_version"]'
- id: build-push
uses: uclahs-cds/tool-Docker-action/build-release@nwiltsie-enable-subfolders
with:
metadata-file: run-nextflow-tests/docker-metadata.yaml
context: run-nextflow-tests
github-token: ${{ secrets.GITHUB_TOKEN }}
custom-tags: type=raw,enable=${{github.event_name == 'push'}},value=${{steps.getversion.outputs.data}}-${{github.run_number}}