Skip to content

armgit / ente

Public Imported from GitHub
0

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

Polish Docker publish workflows

Manav Rathi0073fcf03321
diff --git a/.github/workflows/copycat-db-release.yml b/.github/workflows/copycat-db-release.yml
index 16c378de79..b6e3da3e46 100644
--- a/.github/workflows/copycat-db-release.yml
+++ b/.github/workflows/copycat-db-release.yml
@@ -1,7 +1,7 @@
name: "Release (copycat-db)"
on:
- workflow_dispatch: # Run manually
+ workflow_dispatch:
permissions:
contents: read
@@ -11,8 +11,8 @@ jobs:
runs-on: ubuntu-latest
environment: production
steps:
- - uses: actions/checkout@v6
- name: Check out code
+ - name: Checkout
+ uses: actions/checkout@v6
- name: Log in to Docker registry
env:
diff --git a/.github/workflows/server-publish-ghcr.yml b/.github/workflows/server-publish-ghcr.yml
index 4bbce60cb4..0093a09dd9 100644
--- a/.github/workflows/server-publish-ghcr.yml
+++ b/.github/workflows/server-publish-ghcr.yml
@@ -17,9 +17,11 @@ jobs:
steps:
- name: Determine commit from prod museum
run: |
- echo "museum_commit=$(curl -s https://api.ente.com/ping | jq -r .id)" >> $GITHUB_ENV
+ museum_commit="$(curl -s https://api.ente.com/ping | jq -r .id)"
+ [[ "${museum_commit}" =~ ^[0-9a-f]{40}$ ]]
+ echo "museum_commit=${museum_commit}" >> $GITHUB_ENV
- - name: Checkout code
+ - name: Checkout prod museum commit
uses: actions/checkout@v6
with:
ref: ${{ env.museum_commit }}
diff --git a/.github/workflows/server-release.yml b/.github/workflows/server-release.yml
index a74ae9b1f7..44953c3cac 100644
--- a/.github/workflows/server-release.yml
+++ b/.github/workflows/server-release.yml
@@ -1,7 +1,7 @@
name: "Release (server)"
on:
- workflow_dispatch: # Run manually
+ workflow_dispatch:
permissions:
contents: read
@@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
environment: production
steps:
- - name: Checkout code
+ - name: Checkout
uses: actions/checkout@v6
- name: Log in to Docker registry
diff --git a/.github/workflows/web-publish-ghcr.yml b/.github/workflows/web-publish-ghcr.yml
index a558fb20bc..29c742583e 100644
--- a/.github/workflows/web-publish-ghcr.yml
+++ b/.github/workflows/web-publish-ghcr.yml
@@ -15,7 +15,7 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- - name: Checkout code
+ - name: Checkout
uses: actions/checkout@v6
- name: Log in to GHCR