Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Stop updating GHCR branches

Manav Rathi5d80238e1fa6
diff --git a/.github/workflows/server-publish-ghcr.yml b/.github/workflows/server-publish-ghcr.yml
index 0093a09dd9..391f7f3dcc 100644
--- a/.github/workflows/server-publish-ghcr.yml
+++ b/.github/workflows/server-publish-ghcr.yml
@@ -8,7 +8,7 @@ on:
workflow_dispatch:
permissions:
- contents: write # for pushing the `ghcr/server` branch
+ contents: read
packages: write
jobs:
@@ -41,7 +41,3 @@ jobs:
--tag ghcr.io/ente-io/server:${museum_commit} \
--tag ghcr.io/ente-io/server:latest \
server
-
- - name: Update branch ghcr/server to point to source commit
- run: |
- git push -f origin HEAD:refs/heads/ghcr/server
diff --git a/.github/workflows/web-publish-ghcr.yml b/.github/workflows/web-publish-ghcr.yml
index 29c742583e..f9ffc3de03 100644
--- a/.github/workflows/web-publish-ghcr.yml
+++ b/.github/workflows/web-publish-ghcr.yml
@@ -8,7 +8,7 @@ on:
workflow_dispatch:
permissions:
- contents: write # for pushing the `ghcr/web` branch
+ contents: read
packages: write
jobs:
@@ -32,7 +32,3 @@ jobs:
--tag ghcr.io/ente-io/web:${GITHUB_SHA} \
--tag ghcr.io/ente-io/web:latest \
.
-
- - name: Update branch ghcr/web to point to source commit
- run: |
- git push -f origin HEAD:refs/heads/ghcr/web
diff --git a/server/docs/publish.md b/server/docs/publish.md
index 866db8f943..23ab5b41a9 100644
--- a/server/docs/publish.md
+++ b/server/docs/publish.md
@@ -25,5 +25,3 @@ gh workflow run server-publish.yml
> It uses the commit that is deployed on production museum instances. We can publish from any arbitrary commit really, but by using the commit that's already seen production, we avoid externally publishing images with issues.
Once the workflow completes, the resultant image will be available at `ghcr.io/ente-io/server`. The image will be tagged by the commit SHA. The latest image will also be tagged, well, "latest".
-
-The workflow will also update the branch `ghcr/server` to point to the commit it used to build the image. This branch will be overwritten on each publish; thus `ghcr/server` will always points to the code from which the most recent ghcr docker image for museum has been built.