Skip to content

armgit / ente

Public Imported from GitHub
0

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

Inline Docker release builds

Manav Rathi277c028eab74
diff --git a/.github/workflows/copycat-db-release.yml b/.github/workflows/copycat-db-release.yml
index 5520a44e8e..16c378de79 100644
--- a/.github/workflows/copycat-db-release.yml
+++ b/.github/workflows/copycat-db-release.yml
@@ -14,15 +14,17 @@ jobs:
- uses: actions/checkout@v6
name: Check out code
- - uses: mr-smithers-excellent/docker-build-push@v6
- name: Build & Push
- with:
- dockerfile: infra/copycat-db/Dockerfile
- directory: infra/copycat-db
- image: ente/copycat-db
- registry: rg.fr-par.scw.cloud
- enableBuildKit: true
- buildArgs: GIT_COMMIT=${GITHUB_SHA}
- tags: ${GITHUB_SHA}, latest
- username: ${{ secrets.DOCKER_USERNAME }}
- password: ${{ secrets.DOCKER_PASSWORD }}
+ - name: Log in to Docker registry
+ env:
+ DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
+ DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
+ run: printf '%s' "${DOCKER_PASSWORD}" | docker login rg.fr-par.scw.cloud --username "${DOCKER_USERNAME}" --password-stdin
+
+ - name: Build and push image
+ run: |
+ docker buildx build --push \
+ --file infra/copycat-db/Dockerfile \
+ --build-arg GIT_COMMIT="${GITHUB_SHA}" \
+ --tag rg.fr-par.scw.cloud/ente/copycat-db:${GITHUB_SHA} \
+ --tag rg.fr-par.scw.cloud/ente/copycat-db:latest \
+ infra/copycat-db
diff --git a/.github/workflows/server-release.yml b/.github/workflows/server-release.yml
index b4a8d449d6..a74ae9b1f7 100644
--- a/.github/workflows/server-release.yml
+++ b/.github/workflows/server-release.yml
@@ -14,15 +14,17 @@ jobs:
- name: Checkout code
uses: actions/checkout@v6
- - name: Build and push
- uses: mr-smithers-excellent/docker-build-push@v6
- with:
- dockerfile: server/Dockerfile
- directory: server
- image: ente/museum-prod
- registry: rg.fr-par.scw.cloud
- enableBuildKit: true
- buildArgs: GIT_COMMIT=${GITHUB_SHA}
- tags: ${GITHUB_SHA}, latest
- username: ${{ secrets.DOCKER_USERNAME }}
- password: ${{ secrets.DOCKER_PASSWORD }}
+ - name: Log in to Docker registry
+ env:
+ DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
+ DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
+ run: printf '%s' "${DOCKER_PASSWORD}" | docker login rg.fr-par.scw.cloud --username "${DOCKER_USERNAME}" --password-stdin
+
+ - name: Build and push image
+ run: |
+ docker buildx build --push \
+ --file server/Dockerfile \
+ --build-arg GIT_COMMIT="${GITHUB_SHA}" \
+ --tag rg.fr-par.scw.cloud/ente/museum-prod:${GITHUB_SHA} \
+ --tag rg.fr-par.scw.cloud/ente/museum-prod:latest \
+ server