diff --git a/.github/workflows/release-docker-image-server-only.yaml b/.github/workflows/release-docker-image-server-only.yaml new file mode 100644 index 0000000..b064fe2 --- /dev/null +++ b/.github/workflows/release-docker-image-server-only.yaml @@ -0,0 +1,34 @@ +name: Release UID2 Examples Image for Server Only +run-name: ${{ inputs.release_type == 'Snapshot' && 'Publish Pre-release' || format('Release {0}', inputs.release_type)}} Server Only 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 }} + working_dir: publisher/server_only + secrets: inherit + + publishForServerOnly: + 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: publisher/server_only/Dockerfile + docker_image_name: IABTechLab/uid2-examples + docker_registry: ghcr.io + secrets: inherit diff --git a/.github/workflows/release-docker-image-standard.yaml b/.github/workflows/release-docker-image-standard.yaml new file mode 100644 index 0000000..abebe11 --- /dev/null +++ b/.github/workflows/release-docker-image-standard.yaml @@ -0,0 +1,34 @@ +name: Release UID2 Examples Image for Standard +run-name: ${{ inputs.release_type == 'Snapshot' && 'Publish Pre-release' || format('Release {0}', inputs.release_type)}} Standard 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 }} + working_dir: publisher/standard + secrets: inherit + + publishForStandard: + 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: publisher/standard/Dockerfile + docker_image_name: IABTechLab/uid2-examples + docker_registry: ghcr.io + secrets: inherit diff --git a/publisher/server_only/version.json b/publisher/server_only/version.json new file mode 100644 index 0000000..63a625b --- /dev/null +++ b/publisher/server_only/version.json @@ -0,0 +1 @@ +{ "$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", "version": "0.10.1", "publicReleaseRefSpec": [ "^refs/heads/master$", "^refs/heads/v\\d+(?:\\.\\d+)?$" ], "cloudBuild": { "setVersionVariables": true, "buildNumber": { "enabled": true, "includeCommitId": { "when": "always" } } } } diff --git a/publisher/standard/version.json b/publisher/standard/version.json new file mode 100644 index 0000000..63a625b --- /dev/null +++ b/publisher/standard/version.json @@ -0,0 +1 @@ +{ "$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", "version": "0.10.1", "publicReleaseRefSpec": [ "^refs/heads/master$", "^refs/heads/v\\d+(?:\\.\\d+)?$" ], "cloudBuild": { "setVersionVariables": true, "buildNumber": { "enabled": true, "includeCommitId": { "when": "always" } } } }