Skip to content

Commit 7c706ec

Browse files
authored
Merge pull request #268 from IABTechLab/kcc-UID2-2674-implement-shared-publish-to-docker-versioned
UID2-2674 Add publish workflow for ssportal
2 parents 74f91a1 + ec828e9 commit 7c706ec

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Release Self Serve Portal Image
2+
run-name: ${{ inputs.release_type == 'Snapshot' && 'Publish Pre-release' || format('Release {0}', inputs.release_type)}} Self Serve Portal Image by @${{ github.actor }}
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
release_type:
7+
type: choice
8+
description: The type of release
9+
options:
10+
- Major
11+
- Minor
12+
- Patch
13+
- Snapshot
14+
required: true
15+
16+
jobs:
17+
incrementVersionNumber:
18+
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-increase-version-number.yaml@v2
19+
with:
20+
release_type: ${{ inputs.release_type }}
21+
secrets: inherit
22+
23+
publishForApiUi:
24+
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-publish-to-docker-versioned.yaml@v2
25+
needs: incrementVersionNumber
26+
with:
27+
new_version: ${{ needs.incrementVersionNumber.outputs.new_version }}
28+
image_tag: ${{ needs.incrementVersionNumber.outputs.image_tag }}
29+
release_type: ${{ inputs.release_type }}
30+
docker_file: Dockerfile_ssportal
31+
docker_image_name: iabtechlab/uid2-ssportal
32+
docker_registry: ghcr.io
33+
secrets: inherit
34+
35+
publishForDBMigration:
36+
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-publish-to-docker-versioned.yaml@v2
37+
needs: incrementVersionNumber
38+
with:
39+
new_version: ${{ needs.incrementVersionNumber.outputs.new_version }}
40+
image_tag: ${{ needs.incrementVersionNumber.outputs.image_tag }}
41+
release_type: ${{ inputs.release_type }}
42+
docker_file: Dockerfile_ssportal_migration
43+
docker_image_name: iabtechlab/uid2-ssportal-migration
44+
docker_registry: ghcr.io
45+
secrets: inherit
46+
47+
publishForKeycloak:
48+
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-publish-to-docker-versioned.yaml@v2
49+
needs: incrementVersionNumber
50+
with:
51+
new_version: ${{ needs.incrementVersionNumber.outputs.new_version }}
52+
image_tag: ${{ needs.incrementVersionNumber.outputs.image_tag }}
53+
release_type: ${{ inputs.release_type }}
54+
docker_file: Dockerfile_keycloak
55+
docker_image_name: iabtechlab/uid2-ssportal-keycloak
56+
docker_registry: ghcr.io
57+
secrets: inherit

version.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", "version": "0.10.1", "publicReleaseRefSpec": [ "^refs/heads/master$", "^refs/heads/v\\d+(?:\\.\\d+)?$" ], "cloudBuild": { "setVersionVariables": true, "buildNumber": { "enabled": true, "includeCommitId": { "when": "always" } } } }

0 commit comments

Comments
 (0)