Skip to content

Commit

Permalink
Fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ldeluigi committed May 31, 2023
1 parent d6af496 commit 60d0010
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 60d0010

Please sign in to comment.