Skip to content

Commit

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

UID2-2674 Combine workflow for UID2 and EUID
  • Loading branch information
cYKatherine authored Jan 22, 2024
2 parents 21bfed1 + fc97fab commit f3348c6
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 47 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/release-docker-image-euid.yaml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/release-docker-image-uid2.yaml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/release-docker-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Release TCPORTAL Image
run-name: ${{ inputs.release_type == 'Snapshot' && 'Publish Pre-release' || format('Release {0}', inputs.release_type)}} Docker Image by @${{ github.actor }}
on:
workflow_dispatch:
inputs:
release_type:
type: choice
description: 'The type of release'
options:
- Major
- Minor
- Patch
- Snapshot
pull_request:

jobs:
incrementVersionNumber:
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-increase-version-number.yaml@v2
with:
release_type: ${{ inputs.release_type }}
secrets: inherit

publishToUID2:
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-publish-to-docker-versioned.yaml@v2
needs: incrementVersionNumber
with:
new_version: ${{ needs.incrementVersionNumber.outputs.new_version }}
image_tag: ${{ needs.incrementVersionNumber.outputs.image_tag }}
release_type: ${{ inputs.release_type }}
docker_file: Dockerfile_uid2
docker_image_name: iabtechlab/uid2-tcportal
docker_registry: ghcr.io
secrets: inherit

publishToEUID:
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-publish-to-docker-versioned.yaml@v2
needs: incrementVersionNumber
with:
new_version: ${{ needs.incrementVersionNumber.outputs.new_version }}
image_tag: ${{ needs.incrementVersionNumber.outputs.image_tag }}
release_type: ${{ inputs.release_type }}
docker_file: Dockerfile_euid
docker_image_name: iabtechlab/euid-tcportal
docker_registry: ghcr.io
secrets: inherit
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tc-portal",
"version": "1.3.1-e95732731f",
"version": "1.3.1",
"private": true,
"engineStrict": true,
"scripts": {
Expand Down

0 comments on commit f3348c6

Please sign in to comment.