Skip to content

Commit

Permalink
fix: add snapshot-verifier to release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
pgallik committed Oct 3, 2023
1 parent f1bd743 commit 09f49fd
Show file tree
Hide file tree
Showing 3 changed files with 124 additions and 27 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/deploy_newprd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,16 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
services: ['streetname-registry-api', 'streetname-registry-projections', 'streetname-registry-backoffice-api', 'streetname-registry-consumer', 'streetname-registry-producer', 'streetname-registry-migrator-streetname', 'streetname-registry-producer-snapshot-oslo', 'streetname-registry-projections-backoffice']
services: [
'streetname-registry-api',
'streetname-registry-projections',
'streetname-registry-backoffice-api',
'streetname-registry-consumer',
'streetname-registry-producer',
'streetname-registry-migrator-streetname',
'streetname-registry-producer-snapshot-oslo',
'streetname-registry-projections-backoffice',
'streetname-registry-snapshot-verifier']

steps:
- name: CD services
Expand Down
137 changes: 111 additions & 26 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,21 @@ jobs:
semver: ${{ needs.set-release-version.outputs.version }}
secrets: inherit

build-snapshot-verifier:
name: Build Snapshot Verifier
uses: Informatievlaanderen/build-pipeline/.github/workflows/build-image.yml@main
needs: [ set-release-version ]
if: ${{ (github.repository_owner == 'Informatievlaanderen') && (needs.set-release-version.outputs.version != 'none') }}
with:
registry: streetname-registry
build-target: Containerize_SnapshotVerifier
image-file: sr-snapshot-verifier-image.tar
image-name: snapshot-verifier
test-project: StreetNameRegistry.Tests
build-project: StreetNameRegistry.Snapshot.Verifier
semver: ${{ needs.set-release-version.outputs.version }}
secrets: inherit

pack-api-backoffice:
name: Pack Api BackOffice
uses: Informatievlaanderen/build-pipeline/.github/workflows/pack.yml@main
Expand Down Expand Up @@ -321,26 +336,28 @@ jobs:
if: ${{ (github.repository_owner == 'Informatievlaanderen') && (needs.set-release-version.outputs.version != 'none') }}
name: Semantic Release
runs-on: ubuntu-latest
needs: [ set-release-version,
pack-api-backoffice,
pack-api-backoffice-abstractions,
pack-api-legacy,
pack-api-oslo,
pack-api-extract,
pack-api-crab-import,
build-api-backoffice,
build-api-legacy,
build-api-oslo,
build-api-extract,
build-api-crab-import,
build-projector,
build-projections-backoffice,
build-projections-syndication,
build-consumer,
build-producer,
build-producer-snapshot-oslo,
build-migrator-streetname,
build-lambda-backoffice ]
needs: [ set-release-version
, pack-api-backoffice
, pack-api-backoffice-abstractions
, pack-api-legacy
, pack-api-oslo
, pack-api-extract
, pack-api-crab-import
, build-api-backoffice
, build-api-legacy
, build-api-oslo
, build-api-extract
, build-api-crab-import
, build-projector
, build-projections-backoffice
, build-projections-syndication
, build-consumer
, build-producer
, build-producer-snapshot-oslo
, build-migrator-streetname
, build-lambda-backoffice
, build-snapshot-verifier
]
outputs:
version: ${{ steps.set-version.outputs.version }}
steps:
Expand Down Expand Up @@ -684,7 +701,21 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
image: ['api-backoffice', 'api-legacy', 'api-oslo', 'api-crab-import', 'api-extract', 'projector', 'projections-syndication', 'projections-backoffice', 'consumer', 'producer', 'producer-snapshot-oslo', 'migrator-streetname']
image: [
'api-backoffice'
, 'api-legacy'
, 'api-oslo'
, 'api-crab-import'
, 'api-extract'
, 'projector'
, 'projections-syndication'
, 'projections-backoffice'
, 'consumer'
, 'producer'
, 'producer-snapshot-oslo'
, 'migrator-streetname'
, 'snapshot-verifier'
]
steps:
- name: Configure AWS credentials (Test)
uses: aws-actions/configure-aws-credentials@v1-node16
Expand Down Expand Up @@ -731,7 +762,21 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
image: ['api-backoffice', 'api-legacy', 'api-oslo', 'api-crab-import', 'api-extract', 'projector', 'projections-syndication', 'projections-backoffice', 'consumer', 'producer', 'producer-snapshot-oslo', 'migrator-streetname']
image: [
'api-backoffice'
, 'api-legacy'
, 'api-oslo'
, 'api-crab-import'
, 'api-extract'
, 'projector'
, 'projections-syndication'
, 'projections-backoffice'
, 'consumer'
, 'producer'
, 'producer-snapshot-oslo'
, 'migrator-streetname'
, 'snapshot-verifier'
]
steps:
- name: Configure AWS credentials (Staging)
uses: aws-actions/configure-aws-credentials@v1-node16
Expand Down Expand Up @@ -780,7 +825,21 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
image: ['api-backoffice', 'api-legacy', 'api-oslo', 'api-crab-import', 'api-extract', 'projector', 'projections-syndication', 'projections-backoffice', 'consumer', 'producer', 'producer-snapshot-oslo', 'migrator-streetname']
image: [
'api-backoffice'
, 'api-legacy'
, 'api-oslo'
, 'api-crab-import'
, 'api-extract'
, 'projector'
, 'projections-syndication'
, 'projections-backoffice'
, 'consumer'
, 'producer'
, 'producer-snapshot-oslo'
, 'migrator-streetname'
, 'snapshot-verifier'
]
steps:
- name: Configure AWS credentials (New Production)
uses: aws-actions/configure-aws-credentials@v1-node16
Expand Down Expand Up @@ -900,7 +959,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
services: ['streetname-registry-api', 'streetname-registry-import-api', 'streetname-registry-projections', 'streetname-registry-producer', 'streetname-registry-producer-snapshot-oslo', 'streetname-registry-projections-backoffice']
services: [
'streetname-registry-api'
, 'streetname-registry-import-api'
, 'streetname-registry-projections'
, 'streetname-registry-producer'
, 'streetname-registry-producer-snapshot-oslo'
, 'streetname-registry-projections-backoffice'
, 'snapshot-verifier'
]

steps:
- name: Deploy services
Expand Down Expand Up @@ -1010,7 +1077,16 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
services: ['streetname-registry-api', 'streetname-registry-projections', 'streetname-registry-backoffice-api', 'streetname-registry-consumer', 'streetname-registry-producer', 'streetname-registry-migrator-streetname', 'streetname-registry-producer-snapshot-oslo', 'streetname-registry-projections-backoffice']
services: [
'streetname-registry-api'
, 'streetname-registry-projections'
, 'streetname-registry-backoffice-api'
, 'streetname-registry-consumer'
, 'streetname-registry-producer'
, 'streetname-registry-migrator-streetname'
, 'streetname-registry-producer-snapshot-oslo'
, 'streetname-registry-projections-backoffice'
, 'snapshot-verifier']

steps:
- name: CD services
Expand Down Expand Up @@ -1120,7 +1196,16 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
services: ['streetname-registry-api', 'streetname-registry-projections', 'streetname-registry-backoffice-api', 'streetname-registry-consumer', 'streetname-registry-producer', 'streetname-registry-migrator-streetname', 'streetname-registry-producer-snapshot-oslo', 'streetname-registry-projections-backoffice']
services: [
'streetname-registry-api'
, 'streetname-registry-projections'
, 'streetname-registry-backoffice-api'
, 'streetname-registry-consumer'
, 'streetname-registry-producer'
, 'streetname-registry-migrator-streetname'
, 'streetname-registry-producer-snapshot-oslo'
, 'streetname-registry-projections-backoffice'
, 'snapshot-verifier']

steps:
- name: CD services
Expand Down
3 changes: 3 additions & 0 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ Target.create "Publish_Solution" (fun _ ->
"StreetNameRegistry.Migrator.StreetName"
"StreetNameRegistry.Projections.BackOffice"
"StreetNameRegistry.Projections.Syndication"
"StreetNameRegistry.Snapshot.Verifier"
|] |> Array.Parallel.iter publishSource)

Target.create "Pack_Solution" (fun _ ->
Expand All @@ -93,6 +94,7 @@ Target.create "Containerize" (fun _ ->
{ Project = "StreetNameRegistry.Migrator.StreetName"; Container = "migrator-streetname" }
{ Project = "StreetNameRegistry.Projections.Syndication"; Container = "projections-syndication" }
{ Project = "StreetNameRegistry.Projections.BackOffice"; Container = "projections-backoffice" }
{ Project = "StreetNameRegistry.Snapshot.Verifier"; Container = "snapshot-verifier" }
|] |> Array.Parallel.iter (fun o -> containerize o.Project o.Container))

Target.create "SetAssemblyVersions" (fun _ -> setVersions "SolutionInfo.cs")
Expand All @@ -109,6 +111,7 @@ Target.create "Containerize_ProducerSnapshotOslo" (fun _ -> containerize "Street
Target.create "Containerize_MigratorStreetName" (fun _ -> containerize "StreetNameRegistry.Migrator.StreetName" "migrator-streetname")
Target.create "Containerize_ProjectionsSyndication" (fun _ -> containerize "StreetNameRegistry.Projections.Syndication" "projections-syndication")
Target.create "Containerize_ProjectionsBackOffice" (fun _ -> containerize "StreetNameRegistry.Projections.BackOffice" "projections-backoffice")
Target.create "Containerize_SnapshotVerifier" (fun _ -> containerize "StreetNameRegistry.Snapshot.Verifier" "snapshot-verifier")
// --------------------------------------------------------------------------------

Target.create "Build" ignore
Expand Down

0 comments on commit 09f49fd

Please sign in to comment.