major: single pipeline for both pr and release #22
Workflow file for this run
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
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
push: | |
branches: | |
- main | |
permissions: | |
# Permission needed to author a Github release | |
contents: write | |
# pull-request: write if you enable PR thread comments | |
pull-requests: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: false | |
jobs: | |
whalesay: | |
uses: ./.github/workflows/pr-and-release-container.yaml | |
with: | |
job-name: container-whalesay | |
registry: ${{ vars.HARBOR_REGISTRY }} | |
registry-user: ${{ vars.HARBOR_USER }} | |
registry-repo: github-workflows/whalesay | |
cosign-public-key: ${{ vars.COSIGN_PUBLIC_KEY }} | |
slack-channel: ${{ vars.SLACK_CHANNEL }} | |
build-file: containers/whalesay/Dockerfile | |
build-context: containers/whalesay | |
test-args: cowsay boo | |
pr-filters: | | |
container-whalesay: | |
- './.github/workflows/on-pr-update.yaml' | |
- './.github/workflows/slack-pr-thread.yaml' | |
- './.github/workflows/changes-pr.yaml' | |
- './.github/workflows/build-and-test-pr-container.yaml' | |
- './.github/workflows/build-pr-container.yaml' | |
- './.github/workflows/test-pr-container.yaml' | |
- './containers/whalesay/**' | |
release-filters: | | |
container-whalesay: | |
- './.github/workflows/on-release.yaml' | |
- './.github/workflows/on-release-container.yaml' | |
- './.github/workflows/slack-release-thread.yaml' | |
- './.github/workflows/changes-release.yaml' | |
- './.github/workflows/version.yaml' | |
- './.github/workflows/build-and-test-release-container.yaml' | |
- './.github/workflows/build-release-container.yaml' | |
- './.github/workflows/test-release-container.yaml' | |
- './.github/workflows/release-container.yaml' | |
- './containers/whalesay/**' | |
secrets: | |
cosign-private-key: ${{ secrets.COSIGN_PRIVATE_KEY }} | |
cosign-password: ${{ secrets.COSIGN_PASSWORD }} | |
registry-token: ${{ secrets.HARBOR_TOKEN }} | |
slack-token: ${{ secrets.SLACK_TOKEN }} |