File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release JS SDK Example Docker Image
2+ run-name : ${{ github.action_ref == 'refs/head/main' && 'Release' || 'Publish Pre-release' }} JS SDK Example Docker Image by @${{ github.actor }}
3+
4+ on :
5+ workflow_dispatch :
6+
7+ env :
8+ REGISTRY : ghcr.io
9+ IMAGE_NAME : iabtechlab/uid2-js-sdk-example
10+
11+ jobs :
12+ build-cstg-example :
13+ runs-on : ubuntu-latest
14+ permissions :
15+ contents : read
16+ packages : write
17+ steps :
18+ - uses : actions/checkout@v4
19+ - name : Log in to the Container registry
20+ uses : docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
21+ with :
22+ registry : ${{ env.REGISTRY }}
23+ username : ${{ github.actor }}
24+ password : ${{ secrets.GITHUB_TOKEN }}
25+ - name : Extract metadata (tags, labels) for Docker
26+ id : meta
27+ uses : docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
28+ with :
29+ images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
30+ tags : |
31+ type=sha,format=short
32+ - name : Build and push Docker JS SDK Example image
33+ uses : docker/build-push-action@v5
34+ with :
35+ context : examples/cstg
36+ push : true
37+ tags : ${{ steps.meta.outputs.tags }}
38+ labels : ${{ steps.meta.outputs.labels }}
You can’t perform that action at this time.
0 commit comments