Skip to content

Commit 41cfae1

Browse files
authored
Merge pull request #15 from IABTechLab/kcc-UID2-2674-implement-shared-publish-to-docker-versioned
UID2-2674 implement shared publish to docker versioned
2 parents 0b58f2f + 3181c94 commit 41cfae1

File tree

4 files changed

+71
-0
lines changed

4 files changed

+71
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release UID2 Examples Image for Server Only
2+
run-name: ${{ inputs.release_type == 'Snapshot' && 'Publish Pre-release' || format('Release {0}', inputs.release_type)}} UID2 Examples Image for Server Only 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+
working_dir: publisher/server_only
22+
secrets: inherit
23+
24+
publishForServerOnly:
25+
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-publish-to-docker-versioned.yaml@v2
26+
needs: incrementVersionNumber
27+
with:
28+
new_version: ${{ needs.incrementVersionNumber.outputs.new_version }}
29+
image_tag: ${{ needs.incrementVersionNumber.outputs.image_tag }}
30+
release_type: ${{ inputs.release_type }}
31+
docker_file: publisher/server_only/Dockerfile
32+
docker_context: publisher/server_only
33+
docker_image_name: IABTechLab/uid2-examples
34+
docker_registry: ghcr.io
35+
secrets: inherit
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release UID2 Examples Image for Standard
2+
run-name: ${{ inputs.release_type == 'Snapshot' && 'Publish Pre-release' || format('Release {0}', inputs.release_type)}} UID2 Examples Image for Standard 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+
15+
jobs:
16+
incrementVersionNumber:
17+
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-increase-version-number.yaml@v2
18+
with:
19+
release_type: ${{ inputs.release_type }}
20+
working_dir: publisher/standard
21+
secrets: inherit
22+
23+
publishForStandard:
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: publisher/standard/Dockerfile
31+
docker_context: publisher/standard
32+
docker_image_name: IABTechLab/uid2-examples
33+
docker_registry: ghcr.io
34+
secrets: inherit

publisher/server_only/version.json

Lines changed: 1 addition & 0 deletions
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": "1.0.0", "publicReleaseRefSpec": [ "^refs/heads/master$", "^refs/heads/v\\d+(?:\\.\\d+)?$" ], "cloudBuild": { "setVersionVariables": true, "buildNumber": { "enabled": true, "includeCommitId": { "when": "always" } } } }

publisher/standard/version.json

Lines changed: 1 addition & 0 deletions
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": "1.0.0", "publicReleaseRefSpec": [ "^refs/heads/master$", "^refs/heads/v\\d+(?:\\.\\d+)?$" ], "cloudBuild": { "setVersionVariables": true, "buildNumber": { "enabled": true, "includeCommitId": { "when": "always" } } } }

0 commit comments

Comments
 (0)