-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: renovate reusable workflow (#141)
- Loading branch information
1 parent
f495de4
commit d2f574f
Showing
4 changed files
with
72 additions
and
13 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Build Internal Container | ||
|
||
on: | ||
pull_request: | ||
# Only consider PRs that change files for this asset, including ci scripts | ||
paths: | ||
- '.github/workflows/internal-container.yaml' | ||
- 'containers/internal/**' | ||
# 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/internal-container/[0-9]+.x.x' | ||
- 'maintenance/internal-container/[0-9]+.[0-9]+.x' | ||
- 'main' | ||
# Only consider pushes that change files for this asset, including ci scripts | ||
paths: | ||
- '.github/workflows/internal-container.yaml' | ||
- 'containers/internal/**' | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
actions: read | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
# Cancel early on pull requests if new commits are added, | ||
# Don't cancel on release pushes | ||
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
|
||
jobs: | ||
# Job name must be unique across repo to target | ||
# branch protection rules "required checks" properly! | ||
internal-container: | ||
uses: SwanseaUniversityMedical/workflows/.github/workflows/pr-and-release-container.yaml@v2.0.1-containers | ||
with: | ||
job-name: internal-container | ||
comment-pr: "true" | ||
comment-release: "true" | ||
registry: ${{ vars.HARBOR_REGISTRY }} | ||
registry-user: ${{ vars.HARBOR_USER }} | ||
registry-repo: ${{ vars.HARBOR_PROJECT }}/internal | ||
release-tag-format: 'v${version}-internal-container' | ||
cosign-public-key: ${{ vars.COSIGN_PUBLIC_KEY }} | ||
build-file: containers/internal/Dockerfile | ||
build-context: containers/internal | ||
secrets: | ||
cosign-private-key: ${{ secrets.COSIGN_PRIVATE_KEY }} | ||
cosign-password: ${{ secrets.COSIGN_PASSWORD }} | ||
registry-token: ${{ secrets.HARBOR_TOKEN }} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
FROM harbor.ukserp.ac.uk/github-workflows-test/controller:7.1.0 |