Skip to content

chore(release): Merge release commit 210651eef1d66c9af423d7596fc855e1580abfa4 #62

chore(release): Merge release commit 210651eef1d66c9af423d7596fc855e1580abfa4

chore(release): Merge release commit 210651eef1d66c9af423d7596fc855e1580abfa4 #62

name: Controller Container
on:
pull_request:
# Ignore PRs on branches specifically intended for other assets
branches-ignore:
- '*/fizzbuzz-chart*'
- '*/fizzbuzz-crds-chart*'
# Only consider PRs that change files for this asset, including ci scripts
paths:
- '.github/workflows/flake8.yaml'
- '.github/workflows/controller-container.yaml'
- 'containers/controller/**'
# Make sure all workflows that are "required checks" for a given
# branch protection rule have the same paths: and branches-ignore:
# filters. Otherwise, you can end up in a deadlock waiting on a
# required check that will never be executed.
push:
# Only release off of release and maintenance branches for this asset
branches:
- 'maintenance/controller-container/release/[0-9]+.x.x'
- 'maintenance/controller-container/release/[0-9]+.[0-9]+.x'
- 'release/controller-container'
# Only consider pushes that change files for this asset, including ci scripts
paths:
- '.github/workflows/controller-container.yaml'
- 'containers/controller/**'
permissions:
contents: write
pull-requests: write
actions: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
# Needed to generate releases safely
cancel-in-progress: false
jobs:
# Job name must be unique across repo to target
# branch protection rules "required checks" properly!
controller-container:
uses: SwanseaUniversityMedical/workflows/.github/workflows/pr-and-release-container.yaml@feat/merge-release
with:
job-name: controller-container
registry: ${{ vars.HARBOR_REGISTRY }}
registry-user: ${{ vars.HARBOR_USER }}
registry-repo: ${{ vars.HARBOR_PROJECT }}/controller
release-tag-format: 'controller-container-${version}'
release-branches: |
[
'maintenance/controller-container/release/[0-9]+\.([0-9]+|x)\.x',
'release/controller-container'
]
release-app-id: ${{ vars.RELEASE_APP_ID }}
release-app-client-id: ${{ vars.RELEASE_APP_CLIENT_ID }}
release-app-user: ${{ vars.RELEASE_APP_USER }}
cosign-public-key: ${{ vars.COSIGN_PUBLIC_KEY }}
slack-channel: ${{ vars.SLACK_CHANNEL }}
build-file: containers/controller/Dockerfile
build-context: containers/controller
secrets:
release-app-private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
cosign-private-key: ${{ secrets.COSIGN_PRIVATE_KEY }}
cosign-password: ${{ secrets.COSIGN_PASSWORD }}
registry-token: ${{ secrets.HARBOR_TOKEN }}
slack-token: ${{ secrets.SLACK_TOKEN }}