File tree Expand file tree Collapse file tree 2 files changed +38
-1
lines changed
Expand file tree Collapse file tree 2 files changed +38
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Promote Image to Stable
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ version :
7+ description : " Image tag to promote to stable"
8+ required : true
9+ push :
10+ branches :
11+ - bootstrapper-issue-364
12+
13+ jobs :
14+ promote :
15+ runs-on : ubuntu-latest
16+
17+ steps :
18+ - name : Login to GitHub Container Registry
19+ uses : docker/login-action@v1
20+ with :
21+ registry : ghcr.io
22+ username : ${{ secrets.GHCR_USER }}
23+ password : ${{ secrets.GHCR_PAT }}
24+
25+ - name : Pull and retag image
26+ run : |
27+ IMAGE_NAME=ghcr.io/${{ github.repository_owner }}/ziti-browzer-bootstrapper
28+ VERSION=${{ github.event.inputs.version }}
29+
30+ # Pull the existing image
31+ docker pull $IMAGE_NAME:$VERSION
32+
33+ # Retag it as "stable"
34+ docker tag $IMAGE_NAME:$VERSION $IMAGE_NAME:stable
35+
36+ # Push the new stable tag
37+ docker push $IMAGE_NAME:stable
Original file line number Diff line number Diff line change 11{
22 "name" : " ziti-browzer-bootstrapper" ,
3- "version" : " 0.83 .0" ,
3+ "version" : " 0.84 .0" ,
44 "compatibleControllerVersion" : " >=0.27.9" ,
55 "description" : " Ziti BrowZer Bootstrapper -- providing Ziti network access into Dark web server" ,
66 "main" : " index.js" ,
You can’t perform that action at this time.
0 commit comments