File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99permissions :
1010 contents : read
11- packages : write
1211
1312jobs :
1413 publish :
@@ -20,29 +19,16 @@ jobs:
2019 with :
2120 go-version-file : go.toolchain.version
2221
23- - uses : docker/login-action@v3
24- with :
25- registry : ghcr.io
26- username : ${{ github.actor }}
27- password : ${{ secrets.GITHUB_TOKEN }}
28-
2922 - name : Publish operator image
3023 env :
31- IMAGE_TAG : pr-2- ${{ github.sha }}
24+ SHORT_SHA : ${{ github.sha }}
3225 ANNOTATIONS : org.opencontainers.image.source=https://github.com/replit/tailscale,org.opencontainers.image.vendor=Replit
3326 run : |
34- PUSH=true TARGET=k8s-operator REPOS=ghcr.io /replit/replit -tailscale-k8s-operator TAGS="$IMAGE_TAG" ./build_docker.sh
27+ PUSH=true TARGET=k8s-operator REPOS=ttl.sh /replit-tailscale-k8s-operator-${SHORT_SHA::7} TAGS=24h ./build_docker.sh
3528
3629 - name : Publish proxy image
3730 env :
38- IMAGE_TAG : pr-2- ${{ github.sha }}
31+ SHORT_SHA : ${{ github.sha }}
3932 ANNOTATIONS : org.opencontainers.image.source=https://github.com/replit/tailscale,org.opencontainers.image.vendor=Replit
4033 run : |
41- PUSH=true TARGET=client REPOS=ghcr.io/replit/replit-tailscale TAGS="$IMAGE_TAG" ./build_docker.sh
42-
43- - name : Make packages public
44- env :
45- GH_TOKEN : ${{ github.token }}
46- run : |
47- gh api -X PATCH "orgs/replit/packages/container/replit-tailscale-k8s-operator/visibility" -f visibility=public
48- gh api -X PATCH "orgs/replit/packages/container/replit-tailscale/visibility" -f visibility=public
34+ PUSH=true TARGET=client REPOS=ttl.sh/replit-tailscale-${SHORT_SHA::7} TAGS=24h ./build_docker.sh
You can’t perform that action at this time.
0 commit comments