Skip to content

Commit 692a197

Browse files
Merge branch 'main' into ans-UID2-4677-react-secure-signals-example-site
2 parents 19732c3 + a0e8984 commit 692a197

File tree

16 files changed

+4785
-7
lines changed

16 files changed

+4785
-7
lines changed

.github/workflows/publish-secure-signal-examples.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,31 @@ jobs:
6565
push: true
6666
tags: ${{ steps.meta.outputs.tags }}
6767
labels: ${{ steps.meta.outputs.labels }}
68+
build-client-side:
69+
runs-on: ubuntu-latest
70+
permissions:
71+
contents: read
72+
packages: write
73+
steps:
74+
- uses: actions/checkout@v4
75+
- name: Log in to the Container registry
76+
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
77+
with:
78+
registry: ${{ env.REGISTRY }}
79+
username: ${{ github.actor }}
80+
password: ${{ secrets.GITHUB_TOKEN }}
81+
- name: Extract metadata (tags, labels) for Docker
82+
id: meta
83+
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
84+
with:
85+
images: ${{ env.REGISTRY }}/iabtechlab/uid2-secure-signals-example-client-side
86+
tags: |
87+
type=sha,format=short
88+
type=raw,value=latest
89+
- name: Build and push Docker client_side image
90+
uses: docker/build-push-action@v5
91+
with:
92+
context: examples/google-secure-signals-integration/client_side
93+
push: true
94+
tags: ${{ steps.meta.outputs.tags }}
95+
labels: ${{ steps.meta.outputs.labels }}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release Secure Signal Examples Docker Image for UID2 Client Side
2+
run-name: ${{ inputs.release_type == 'Snapshot' && 'Publish Pre-release' || format('Release {0}', inputs.release_type)}} Secure Signal Examples Docker Image for UID2 Client Side by @${{ github.actor }}
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
release_type:
7+
type: choice
8+
description: The type of release
9+
options:
10+
- Major
11+
- Minor
12+
- Patch
13+
- Snapshot
14+
required: true
15+
16+
jobs:
17+
incrementVersionNumber:
18+
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-increase-version-number.yaml@v2
19+
with:
20+
release_type: ${{ inputs.release_type }}
21+
working_dir: examples/google-secure-signals-integration/client_side
22+
secrets: inherit
23+
24+
publishForSecureSignalsExampleClientSide:
25+
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-publish-to-docker-versioned.yaml@v3
26+
needs: incrementVersionNumber
27+
with:
28+
new_version: ${{ needs.incrementVersionNumber.outputs.new_version }}
29+
image_tag: ${{ needs.incrementVersionNumber.outputs.image_tag }}
30+
release_type: ${{ inputs.release_type }}
31+
docker_file: examples/google-secure-signals-integration/client_side/Dockerfile
32+
docker_context: examples/google-secure-signals-integration/client_side
33+
docker_image_name: iabtechlab/uid2-secure-signals-example-client-side
34+
docker_registry: ghcr.io
35+
force_release: no
36+
secrets: inherit
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
npm-debug.log
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM node:20.11.0-alpine3.18
2+
3+
WORKDIR /usr/src/app
4+
5+
COPY . .
6+
RUN npm install
7+
8+
EXPOSE 3000
9+
CMD [ "npm", "start" ]

0 commit comments

Comments
 (0)