Skip to content

Commit

Permalink
feat: create new containers ci and merge in the egress api container
Browse files Browse the repository at this point in the history
  • Loading branch information
rdash99 committed Jul 18, 2024
1 parent 07dfacf commit 0c700be
Showing 1 changed file with 15 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Egress API Container
name: Build multiple containers

on:
pull_request:
# Only consider PRs that change files for this asset, including ci scripts
paths:
- '.github/workflows/egress-api-container.yaml'
- '.github/workflows/containers.yaml'
- 'src/Data-Egress-API/**'
- 'src/BL/**'
# Make sure all workflows that are "required checks" for a given
Expand All @@ -17,35 +17,42 @@ on:
- 'main'
# Only consider pushes that change files for this asset, including ci scripts
paths:
- '.github/workflows/egress-api-container.yaml'
- '.github/workflows/containers.yaml'
- 'src/Data-Egress-API/**'
- 'src/BL/**'

permissions:
contents: write
pull-requests: write
actions: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
# Needed to generate releases safely
# 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!
setup-containers:
uses: SwanseaUniversityMedical/workflows/.github/workflows/pr-and-release-repo.yaml@v1.0.0-repo
with:
job-name: setup-containers
release-tag-format: 'v${version}-containers'

egress-api-container:
uses: SwanseaUniversityMedical/workflows/.github/workflows/pr-and-release-container.yaml@v2.0.1-containers
needs: setup-containers
uses: SwanseaUniversityMedical/workflows/.github/workflows/bulk-pr-and-release-container.yaml@v1.0.0-bulk-containers
with:
job-name: egress-api-container
registry: ${{ vars.HARBOR_REGISTRY }}
registry-user: ${{ vars.HARBOR_USER }}
registry-repo: ${{ vars.HARBOR_PROJECT }}/${{ vars.HARBOR_REPO }}-egress-api
release-tag-format: 'DARE-Egress-API-Container-${version}'
release-info: ${{ needs.setup-containers.outputs.release-info }}
cosign-public-key: ${{ vars.COSIGN_PUBLIC_KEY }}
build-file: src/Data-Egress-API/Dockerfile
build-context: src
secrets:
cosign-private-key: ${{ secrets.COSIGN_PRIVATE_KEY }}
cosign-password: ${{ secrets.COSIGN_PASSWORD }}
registry-token: ${{ secrets.HARBOR_TOKEN }}
registry-token: ${{ secrets.HARBOR_TOKEN }}

0 comments on commit 0c700be

Please sign in to comment.