Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UID2-2674 Add new workflow to release docker image #35

Merged
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release Secure Signal Examples Docker Image for Server Only
run-name: ${{ inputs.release_type == 'Snapshot' && 'Publish Pre-release' || format('Release {0}', inputs.release_type)}} Secure Signal Examples Docker Image for Server Only by @${{ github.actor }}
on:
workflow_dispatch:
inputs:
release_type:
type: choice
description: The type of release
options:
- Major
- Minor
- Patch
- Snapshot
required: true

jobs:
incrementVersionNumber:
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-increase-version-number.yaml@v2
with:
release_type: ${{ inputs.release_type }}
working_dir: examples/google-esp-integration/server_only
secrets: inherit

publishForESPExampleSrvOnly:
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: examples/google-esp-integration/server_only/Dockerfile
docker_context: examples/google-esp-integration/server_only
docker_image_name: iabtechlab/uid2-esp-example-srvonly
docker_registry: ghcr.io
secrets: inherit
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release Secure Signal Examples Docker Image for Standard
run-name: ${{ inputs.release_type == 'Snapshot' && 'Publish Pre-release' || format('Release {0}', inputs.release_type)}} Secure Signal Examples Docker Image for Standard by @${{ github.actor }}
on:
workflow_dispatch:
inputs:
release_type:
type: choice
description: The type of release
options:
- Major
- Minor
- Patch
- Snapshot

jobs:
incrementVersionNumber:
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-increase-version-number.yaml@v2
with:
release_type: ${{ inputs.release_type }}
working_dir: examples/google-esp-integration/with_sdk_v3
secrets: inherit

publishForESPExampleJssdk:
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: examples/google-esp-integration/with_sdk_v3/Dockerfile
docker_context: examples/google-esp-integration/with_sdk_v3
docker_image_name: iabtechlab/uid2-esp-example-jssdk
docker_registry: ghcr.io
secrets: inherit
4 changes: 2 additions & 2 deletions examples/google-esp-integration/server_only/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM node:14.17.3-alpine3.11
WORKDIR /usr/src/app
FROM node:20.11-alpine3.18
WORKDIR /app
COPY . .
RUN npm install

Expand Down
1 change: 1 addition & 0 deletions examples/google-esp-integration/server_only/version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", "version": "1.0.0", "publicReleaseRefSpec": [ "^refs/heads/master$", "^refs/heads/v\\d+(?:\\.\\d+)?$" ], "cloudBuild": { "setVersionVariables": true, "buildNumber": { "enabled": true, "includeCommitId": { "when": "always" } } } }
2 changes: 1 addition & 1 deletion examples/google-esp-integration/with_sdk_v3/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14.17.3-alpine3.11
FROM node:20.11-alpine3.18
WORKDIR /usr/src/app
COPY . .
RUN npm install
Expand Down
1 change: 1 addition & 0 deletions examples/google-esp-integration/with_sdk_v3/version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", "version": "1.0.0", "publicReleaseRefSpec": [ "^refs/heads/master$", "^refs/heads/v\\d+(?:\\.\\d+)?$" ], "cloudBuild": { "setVersionVariables": true, "buildNumber": { "enabled": true, "includeCommitId": { "when": "always" } } } }
Loading