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 0b6b4d4
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/release-docker-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
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:
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
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
needs: getPackageVersion
with:
release_type: ${{ inputs.release_type }}
version_number_input: ${{ needs.getPackageVersion.outputs.image_tag }}
secrets: inherit

0 comments on commit 0b6b4d4

Please sign in to comment.