Skip to content

Commit 00f824f

Browse files
authored
0.84.0: facilitate a 'stable' tag in GHCR (#365)
1 parent a09e1d2 commit 00f824f

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

0 commit comments

Comments
 (0)