Skip to content

chore(deps): update swanseauniversitymedical/workflows action to v4.1… #4

chore(deps): update swanseauniversitymedical/workflows action to v4.1…

chore(deps): update swanseauniversitymedical/workflows action to v4.1… #4

Workflow file for this run

name: Release
on:
push:
branches:
- main
permissions:
# read needed for changes detection
# write needed to author a Github release
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
changes:
# Detect which files have been changed on this PR's full history
uses: SwanseaUniversityMedical/workflows/.github/workflows/[email protected]
with:
slack-channel: ${{ vars.SLACK_CHANNEL }}
filters: |
hive-container:
- './.github/workflows/on-release.yaml'
- 'containers/hive/**'
chart:
- './.github/workflows/on-release.yaml'
- 'charts/**'
secrets:
slack-token: ${{ secrets.SLACK_TOKEN }}
######################################################################################################################
# Container Tasks
######################################################################################################################
hive-container:
# Build the DARE Hive container and push it as :rc-1.0.0
needs: changes
if: fromJSON(needs.changes.outputs.changes).hive-container == 'true'
uses: SwanseaUniversityMedical/workflows/.github/workflows/[email protected]
with:
job-name: hive-container
container-registry: ${{ vars.HARBOR_REGISTRY }}
container-registry-user: ${{ vars.HARBOR_USER }}
container-registry-project: ${{ vars.HARBOR_PROJECT }}
container-registry-repo: ${{ vars.HARBOR_REPO }}
release-tag-format: 'DARE-Hive-Container-${version}'
slack-channel: ${{ vars.SLACK_CHANNEL }}
build-command: |
docker build -t $IMAGE -f containers/hive/Dockerfile .
secrets:
container-registry-token: ${{ secrets.HARBOR_TOKEN }}
slack-token: ${{ secrets.SLACK_TOKEN }}
######################################################################################################################
# Chart Tasks
######################################################################################################################
chart:
# Build the chart and push it as x.y.z-rc
needs:
- slack

Check failure on line 65 in .github/workflows/on-release.yaml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/on-release.yaml (Line: 65, Col: 9): Job 'chart' depends on unknown job 'slack'.
- changes
if: fromJSON(needs.changes.outputs.changes).chart == 'true'
uses: SwanseaUniversityMedical/workflows/.github/workflows/[email protected]
with:
job-name: chart
chart-registry: ${{ vars.HARBOR_REGISTRY }}
chart-registry-user: ${{ vars.HARBOR_USER }}
chart-registry-project: ${{ vars.HARBOR_PROJECT }}
chart-registry-repo: ${{ vars.HARBOR_REPO }}
release-tag-format: 'DARE-Hive-Helm-${version}'
slack-channel: ${{ vars.SLACK_CHANNEL }}
chart: charts/**
test-command: |
helm template $CHART --values charts/hive/values.yaml
secrets:
chart-registry-token: ${{ secrets.HARBOR_TOKEN }}
slack-token: ${{ secrets.SLACK_TOKEN }}