Skip to content

Publish Pre-release Docker Image by @cYKatherine #9

Publish Pre-release Docker Image by @cYKatherine

Publish Pre-release Docker Image by @cYKatherine #9

name: Release UID2 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:
env:
REGISTRY: ghcr.io
IMAGE_NAME_UID2: iabtechlab/uid2-tcportal
jobs:
getPackageVersion:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
outputs:
package_version: ${{ steps.version.outputs.package_version }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Get Package Version
id: version
shell: bash
run: |
package_version=$(cat package.json | jq -r '.version')
echo "package_version=$package_version" >> $GITHUB_OUTPUT
Image:
name: Publish to docker
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-publish-to-docker-versioned.yaml@kcc-UID2-2674-implement-shared-publish-to-docker-versioned
needs: getPackageVersion
with:
release_type: ${{ inputs.release_type }}
version_number_input: ${{ needs.getPackageVersion.outputs.package_version }}
docker_file: Dockerfile_uid2
secrets: inherit