Skip to content

Commit

Permalink
Merge pull request #30 from IABTechLab/kcc-UID2-2674-implement-shared…
Browse files Browse the repository at this point in the history
…-publish-to-docker-versioned

UID2-2674 Add workflow to release docker image
  • Loading branch information
cYKatherine authored Jan 21, 2024
2 parents 45b5016 + 4f02546 commit 2dd3338
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release-docker-image-euid.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release EUID TCPORTAL Image
run-name: ${{ inputs.release_type == 'Snapshot' && 'Publish Pre-release' || format('Release {0}', inputs.release_type)}} EUID Docker Image by @${{ github.actor }}
on:
workflow_dispatch:
inputs:
release_type:
type: choice
description: 'The type of release'
options:
- Major
- Minor
- Patch
- Snapshot

jobs:
Image:
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-publish-to-docker-versioned.yaml@v2
with:
release_type: ${{ inputs.release_type }}
docker_file: Dockerfile_euid
docker_image_name: iabtechlab/euid-tcportal
docker_registry: ghcr.io
secrets: inherit
23 changes: 23 additions & 0 deletions .github/workflows/release-docker-image-uid2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release UID2 TCPORTAL Image
run-name: ${{ inputs.release_type == 'Snapshot' && 'Publish Pre-release' || format('Release {0}', inputs.release_type)}} UID2 Docker Image by @${{ github.actor }}
on:
workflow_dispatch:
inputs:
release_type:
type: choice
description: 'The type of release'
options:
- Major
- Minor
- Patch
- Snapshot

jobs:
Image:
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-publish-to-docker-versioned.yaml@v2
with:
release_type: ${{ inputs.release_type }}
docker_file: Dockerfile_uid2
docker_image_name: iabtechlab/uid2-tcportal
docker_registry: ghcr.io
secrets: inherit
1 change: 1 addition & 0 deletions version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", "version": "1.3.1", "publicReleaseRefSpec": [ "^refs/heads/master$", "^refs/heads/v\\d+(?:\\.\\d+)?$" ], "cloudBuild": { "setVersionVariables": true, "buildNumber": { "enabled": true, "includeCommitId": { "when": "always" } } } }

0 comments on commit 2dd3338

Please sign in to comment.