Skip to content

Commit

Permalink
(PC-33785)[API] ci: run sandbox only after helm chart is deployed
Browse files Browse the repository at this point in the history
  • Loading branch information
lgerard-pass committed Jan 6, 2025
1 parent d1d8ee1 commit bdb2d9f
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 17 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/dev_on_workflow_deploy_pullrequests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,22 @@ jobs:
echo "| alembic upgrade post@head | $duration |"
} >> $GITHUB_STEP_SUMMARY
- name: "Sync ArgoCD pcapi application"
uses: pass-culture/common-workflows/actions/argocd-sync@argocd-sync/v0.6.0
with:
app_name: pcapi-pr-${{ github.event.pull_request.number }}
argocd_app_wait: true
prune: true

- name: "Run sandbox"
run: |
set -e
VERSION="${{ inputs.app_version }}"
export ENVIRONMENT="${{ inputs.environment }}"
IMAGE="europe-west1-docker.pkg.dev/passculture-infra-prod/pass-culture-artifact-registry/pcapi"
export IMAGE="${IMAGE}:${VERSION}"
export PRID=${{ github.event.pull_request.number }}
echo "=== exec: flask sandbox -n industrial"
export DATE=$(date +"%Y-%m-%d-%H-%M-%S")
start=$(date +%s.%N)
Expand All @@ -249,10 +265,3 @@ jobs:
{
echo "| flask sandbox -n industrial | $duration |"
} >> $GITHUB_STEP_SUMMARY
- name: "Sync ArgoCD pcapi application"
uses: pass-culture/common-workflows/actions/argocd-sync@argocd-sync/v0.6.0
with:
app_name: pcapi-pr-${{ github.event.pull_request.number }}
argocd_app_wait: true
prune: true
2 changes: 0 additions & 2 deletions .github/workflows/templates/pullrequest-db-init-01.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@ spec:
envFrom:
- configMapRef:
name: testing-pcapi-api
optional: true
- configMapRef:
name: testing-pcapi-api-specific
optional: true
- secretRef:
name: testing-pcapi
optional: true
- secretRef:
name: testing-pcapi-pgsql
command:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/templates/pullrequest-db-init-02.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@ spec:
envFrom:
- configMapRef:
name: testing-pcapi-api
optional: true
- configMapRef:
name: testing-pcapi-api-specific
optional: true
- secretRef:
name: testing-pcapi
optional: true
- secretRef:
name: testing-pcapi-pgsql
command:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/templates/pullrequest-db-init-03.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@ spec:
envFrom:
- configMapRef:
name: testing-pcapi-api
optional: true
- configMapRef:
name: testing-pcapi-api-specific
optional: true
- secretRef:
name: testing-pcapi
optional: true
- secretRef:
name: testing-pcapi-pgsql
command:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/templates/pullrequest-db-init-05.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@ spec:
envFrom:
- configMapRef:
name: testing-pcapi-api
optional: true
- configMapRef:
name: testing-pcapi-api-specific
optional: true
- secretRef:
name: testing-pcapi
optional: true
- secretRef:
name: testing-pcapi-pgsql
command:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/templates/pullrequest-db-init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,11 @@ spec:
envFrom:
- configMapRef:
name: testing-pcapi-api
optional: true
- configMapRef:
name: testing-pcapi-api-specific
optional: true
- secretRef:
name: testing-pcapi
optional: true
- secretRef:
name: testing-pcapi-pgsql
command:
Expand Down

0 comments on commit bdb2d9f

Please sign in to comment.