diff --git a/.github/workflows/data-develop.yml b/.github/workflows/data-develop.yml new file mode 100644 index 000000000..b99ca7f32 --- /dev/null +++ b/.github/workflows/data-develop.yml @@ -0,0 +1,33 @@ +name: Import everything to development + +on: + workflow_dispatch: + + push: + paths: + - global-api/import/** + - global-api/import_everything.sh + - k8s/cc-global-api-import-everything.yml + - .github/workflows/data-develop.yml + branches: ["develop"] + +jobs: + + runImportEverything: + runs-on: ubuntu-latest + env: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_EKS_DEV_USER }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_EKS_DEV_USER }} + EKS_DEV_NAME: ${{ secrets.EKS_DEV_NAME }} + steps: + - uses: actions/checkout@v4 + + - name: Creating kubeconfig file + run: aws eks update-kubeconfig --name ${{secrets.EKS_DEV_NAME}} --region us-east-1 + + - name: Testing connection to EKS + run: kubectl get pods -n default + + - name: Import everything in development + run: | + kubectl create -f k8s/cc-global-api-import-everything.yml -n default diff --git a/.github/workflows/data-test.yml b/.github/workflows/data-test.yml new file mode 100644 index 000000000..6a7c44b8a --- /dev/null +++ b/.github/workflows/data-test.yml @@ -0,0 +1,33 @@ +name: Import everything to development + +on: + workflow_dispatch: + + push: + paths: + - global-api/import/** + - global-api/import_everything.sh + - k8s/test/cc-test-global-api-import-everything.yml + - .github/workflows/data-test.yml + branches: ["main"] + +jobs: + + runImportEverything: + runs-on: ubuntu-latest + env: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_EKS_DEV_USER }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_EKS_DEV_USER }} + EKS_DEV_NAME: ${{ secrets.EKS_DEV_NAME }} + steps: + - uses: actions/checkout@v4 + + - name: Creating kubeconfig file + run: aws eks update-kubeconfig --name ${{secrets.EKS_DEV_NAME}} --region us-east-1 + + - name: Testing connection to EKS + run: kubectl get pods -n default + + - name: Import everything in test + run: | + kubectl create -f k8s/test/cc-test-global-api-import-everything.yml -n default