diff --git a/.github/workflows/deploy_to_test.yaml b/.github/workflows/deploy_to_test.yaml new file mode 100644 index 0000000..d7874a5 --- /dev/null +++ b/.github/workflows/deploy_to_test.yaml @@ -0,0 +1,17 @@ +name: Deploy to Minikube test + +on: + pull_request: + branches: [master] + +jobs: + deploy: + runs-on: self-hosted + steps: + - uses: actions/checkout@v4 + + - name: Build and push image + run: docker build -t my-app:${{ github.sha }} . + + - name: Deploy to cluster + run: kubectl set image deployment/my-app my-app=my-app:${{ github.sha }}