Skip to content

Commit

Permalink
Add workflow to release docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
cYKatherine committed Jan 17, 2024
1 parent 45b5016 commit 49f0724
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release-docker-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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:

jobs:
Get package version:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Get Package Version
id: version
run: |
echo "::set-output name=package_version::$(cat package.json | jq -r '.version')"
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
with:
release_type: ${{ inputs.release_type }}
version_number_input: ${{ }}
secrets: inherit

0 comments on commit 49f0724

Please sign in to comment.