diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 8b90c858..bb211ec3 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -41,30 +41,4 @@ jobs: - name: Start environment run: DOCKER_TAG=latest make start-containers - name: Run tests - run: DOCKER_TAG=latest make params=-T tests - deploy: - name: Deploy - runs-on: ubuntu-latest - needs: tests - steps: - - uses: actions/checkout@v1 - - name: Install doctl - uses: digitalocean/action-doctl@v2 - with: - token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }} - - name: Save DigitalOcean kubeconfig with short-lived credentials - run: doctl kubernetes cluster kubeconfig save --expiry-seconds 600 ${{ secrets.CLUSTER_NAME }} - - name: Deploy to DigitalOcean Kubernetes - run: kubectl apply --recursive -f $GITHUB_WORKSPACE/infrastructure/k8s - - name: Rollout - run: kubectl rollout restart deployment pepy - - name: Verify deployment - run: kubectl rollout status deployment/pepy - - name: Create New Relic deployment marker - uses: newrelic/deployment-marker-action@v1 - with: - apiKey: ${{ secrets.NEW_RELIC_API_KEY }} - accountId: ${{ secrets.NEW_RELIC_ACCOUNT_ID }} - applicationId: ${{ secrets.NEW_RELIC_APPLICATION_ID }} - revision: "${{ github.sha }}" - region: EU + run: DOCKER_TAG=latest make params=-T tests \ No newline at end of file diff --git a/infrastructure/k8s/mongodb.yml b/infrastructure/k8s/mongodb.yml index 7066cdbb..980bca77 100644 --- a/infrastructure/k8s/mongodb.yml +++ b/infrastructure/k8s/mongodb.yml @@ -38,11 +38,11 @@ spec: timeoutSeconds: 10 resources: requests: - memory: "500Mi" - cpu: "250m" + memory: "800Mi" + cpu: "500m" limits: memory: "1G" - cpu: "500m" + cpu: "750m" volumeClaimTemplates: - metadata: name: mongodb-volume