From 60d001040f168817f31fabc153553d5be2a74b9e Mon Sep 17 00:00:00 2001 From: ldeluigi <44567586+ldeluigi@users.noreply.github.com> Date: Wed, 31 May 2023 19:12:47 +0200 Subject: [PATCH] Fix ci --- .github/workflows/ci.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2f3c35d0..159da55a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -198,12 +198,8 @@ jobs: with: name: spellbook-backend-migrations path: /tmp/migrations - - name: Debug step # TODO: delete - run: | - echo ${{ steps.migration-artifacts.outputs.download-path }} - ls /tmp/migrations - name: Configure kubernetes πŸ™ - working-directory: /tmp/migrations + working-directory: ${{ steps.migration-artifacts.outputs.download-path }} run: aws eks --region ${{ secrets.AWS_REGION }} update-kubeconfig --name spellbook-prod-cluster --kubeconfig spellbookkubeconfig.yaml - name: Install and configure kubectl πŸ™ uses: azure/setup-kubectl@v3 @@ -214,11 +210,11 @@ jobs: ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} ECR_REPOSITORY: ${{ secrets.AWS_ECR_REPO_NAME }} IMAGE_TAG: ${{ needs.build.outputs.version }} - working-directory: /tmp/migrations + working-directory: ${{ steps.migration-artifacts.outputs.download-path }} run: | kustomize edit set image $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG - name: Run migrations πŸšΆβ€β™‚οΈ - working-directory: /tmp/migrations + working-directory: ${{ steps.migration-artifacts.outputs.download-path }} run: | export KUBECONFIG=spellbookkubeconfig.yaml kubectl delete job spellbook-migration -n spellbook || true @@ -248,6 +244,7 @@ jobs: docker tag spellbook-backend:latest $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG - name: Rollout pods πŸš€ + working-directory: ${{ steps.migration-artifacts.outputs.download-path }} run: | export KUBECONFIG=spellbookkubeconfig.yaml kubectl rollout restart deployment/spellbook-api -n spellbook