Actualiser .gitea/workflows/deploy-verso.yml
Build and Deploy Verso / deploy (push) Failing after 9m59s
Build and Deploy Verso / deploy (push) Failing after 9m59s
This commit is contained in:
@@ -7,15 +7,12 @@ on:
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
REPO_URL: https://git.alocoq.fr/alois/verso.git
|
||||
BASE_IMAGE: registry.alocoq.fr/verso-base:latest
|
||||
IMAGE: registry.alocoq.fr/verso:latest
|
||||
SITE_URL: https://verso.example.com
|
||||
SITE_URL: https://test.alocoq.fr
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: native
|
||||
timeout-minutes: 180
|
||||
timeout-minutes: 240
|
||||
|
||||
steps:
|
||||
- name: Build and push Verso images with BuildKit
|
||||
@@ -36,9 +33,8 @@ jobs:
|
||||
initContainers:
|
||||
- name: prepare
|
||||
image: alpine/git:latest
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
command: ["sh", "-c"]
|
||||
args:
|
||||
- |
|
||||
set -eux
|
||||
git clone --depth 1 https://git.alocoq.fr/alois/verso.git /workspace/repo
|
||||
@@ -51,9 +47,8 @@ jobs:
|
||||
image: moby/buildkit:latest
|
||||
securityContext:
|
||||
privileged: true
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
command: ["sh", "-c"]
|
||||
args:
|
||||
- |
|
||||
set -eux
|
||||
|
||||
@@ -61,7 +56,7 @@ jobs:
|
||||
--frontend=dockerfile.v0 \
|
||||
--local context=/workspace/repo \
|
||||
--local dockerfile=/workspace/repo/server-ce \
|
||||
--opt filename=Dockerfile-base-minimal \
|
||||
--opt filename=Dockerfile-base \
|
||||
--output type=image,name=registry.alocoq.fr/verso-base:latest,push=true
|
||||
|
||||
buildctl-daemonless.sh build \
|
||||
@@ -82,7 +77,7 @@ jobs:
|
||||
|
||||
- name: Wait for build
|
||||
run: |
|
||||
kubectl -n ci wait --for=condition=complete job/verso-buildkit --timeout=10800s
|
||||
kubectl -n ci wait --for=condition=complete job/verso-buildkit --timeout=14400s
|
||||
|
||||
- name: Show build logs
|
||||
if: always()
|
||||
@@ -114,11 +109,7 @@ jobs:
|
||||
containers:
|
||||
- name: mongo
|
||||
image: mongo:8
|
||||
command:
|
||||
- mongod
|
||||
- --replSet
|
||||
- rs0
|
||||
- --bind_ip_all
|
||||
command: ["mongod", "--replSet", "rs0", "--bind_ip_all"]
|
||||
ports:
|
||||
- containerPort: 27017
|
||||
volumeMounts:
|
||||
@@ -190,9 +181,7 @@ jobs:
|
||||
kubectl -n test exec deploy/mongo -- mongosh --eval '
|
||||
rs.initiate({
|
||||
_id: "rs0",
|
||||
members: [
|
||||
{ _id: 0, host: "mongo:27017" }
|
||||
]
|
||||
members: [{ _id: 0, host: "mongo:27017" }]
|
||||
})
|
||||
'
|
||||
|
||||
@@ -259,14 +248,6 @@ jobs:
|
||||
kubectl -n test set image deployment/verso \
|
||||
verso=registry.alocoq.fr/verso:latest
|
||||
|
||||
kubectl -n test set env deployment/verso \
|
||||
OVERLEAF_MONGO_URL='mongodb://mongo:27017/sharelatex?replicaSet=rs0' \
|
||||
OVERLEAF_REDIS_HOST='redis' \
|
||||
REDIS_HOST='redis' \
|
||||
OVERLEAF_APP_NAME='Verso' \
|
||||
OVERLEAF_SITE_URL='https://verso.example.com' \
|
||||
SHARELATEX_SITE_URL='https://verso.example.com'
|
||||
|
||||
kubectl -n test rollout restart deployment/verso
|
||||
kubectl -n test rollout status deployment/verso --timeout=300s
|
||||
|
||||
|
||||
Reference in New Issue
Block a user