diff --git a/.github/workflows/deploy_newprd.yml b/.github/workflows/deploy_newprd.yml index 1c967e2e9..ded415966 100644 --- a/.github/workflows/deploy_newprd.yml +++ b/.github/workflows/deploy_newprd.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4677372e5..eb19141d0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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: @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/build.fsx b/build.fsx index 2917f2dc9..4601d1d7b 100755 --- a/build.fsx +++ b/build.fsx @@ -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 _ -> @@ -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") @@ -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