Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a3bfe9f374 | |||
| a106bb15a8 | |||
| d9a431d99a |
@@ -293,7 +293,7 @@ jobs:
|
|||||||
# must succeed before either the API or worker deploys.
|
# must succeed before either the API or worker deploys.
|
||||||
sync-cw-to-api:
|
sync-cw-to-api:
|
||||||
name: Sync - CW to API
|
name: Sync - CW to API
|
||||||
needs: [build-api, build-worker]
|
needs: [migrate-api, build-worker]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Set the Kubernetes context
|
- name: Set the Kubernetes context
|
||||||
@@ -318,9 +318,9 @@ jobs:
|
|||||||
TAG=${{ github.event.release.tag_name }}
|
TAG=${{ github.event.release.tag_name }}
|
||||||
JOB="job/dalpuri-sync-${TAG}"
|
JOB="job/dalpuri-sync-${TAG}"
|
||||||
|
|
||||||
kubectl wait --for=condition=complete --timeout=1800s -n optima "$JOB" &
|
kubectl wait --for=condition=complete --timeout=7200s -n optima "$JOB" &
|
||||||
WAIT_COMPLETE=$!
|
WAIT_COMPLETE=$!
|
||||||
kubectl wait --for=condition=failed --timeout=1800s -n optima "$JOB" &
|
kubectl wait --for=condition=failed --timeout=7200s -n optima "$JOB" &
|
||||||
WAIT_FAILED=$!
|
WAIT_FAILED=$!
|
||||||
|
|
||||||
wait -n $WAIT_COMPLETE $WAIT_FAILED
|
wait -n $WAIT_COMPLETE $WAIT_FAILED
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
backoffLimit: 0
|
backoffLimit: 0
|
||||||
ttlSecondsAfterFinished: 86400
|
ttlSecondsAfterFinished: 86400
|
||||||
activeDeadlineSeconds: 1800
|
activeDeadlineSeconds: 7200
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
@@ -17,10 +17,12 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: sync
|
- name: sync
|
||||||
image: ghcr.io/horizonstacksoftware/optima-dalpuri-sync:RELEASE_TAG
|
image: ghcr.io/horizonstacksoftware/optima-dalpuri-sync:RELEASE_TAG
|
||||||
envFrom:
|
|
||||||
- secretRef:
|
|
||||||
name: api-env-secret
|
|
||||||
env:
|
env:
|
||||||
|
- name: CW_DATABASE_URL
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: api-env-secret
|
||||||
|
key: CW_DATABASE_URL
|
||||||
- name: API_DATABASE_URL
|
- name: API_DATABASE_URL
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
|
|||||||
Reference in New Issue
Block a user