-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow to release docker image
- Loading branch information
1 parent
45b5016
commit 49f0724
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |