Skip to content

Commit

Permalink
chore: do not allow dependabot to deploy, add codecov token to workfl…
Browse files Browse the repository at this point in the history
…ow (#73)

* chore: do not allow dependabot to deploy, add codecov token to workflow, increase memreq according to #64, add cpu req, mem limit
  • Loading branch information
valosnah authored Apr 2, 2024
1 parent 45a22d6 commit dcd1c90
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-prod&demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
jobs:
build-catalog-admin-service:
name: Build when pull request is created
if: github.event.pull_request.draft == false
uses: Informasjonsforvaltning/workflows/.github/workflows/build-push.yaml@main
with:
app_name: catalog-admin-service
Expand All @@ -18,6 +17,7 @@ jobs:
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GCP_SA_DIGDIR_FDK_GCR_KEY: ${{ secrets.GCP_SA_DIGDIR_FDK_GCR_KEY }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

deploy-prod:
name: Deploy to prod environment
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
build-catalog-admin-service:
name: Build when pull request is created
if: github.event.pull_request.draft == false
if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.draft == false }}
uses: Informasjonsforvaltning/workflows/.github/workflows/build-push.yaml@main
with:
app_name: catalog-admin-service
Expand All @@ -19,10 +19,10 @@ jobs:
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GCP_SA_DIGDIR_FDK_GCR_KEY: ${{ secrets.GCP_SA_DIGDIR_FDK_GCR_KEY }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

deploy:
name: Deploy to staging environment
if: github.event.pull_request.draft == false
needs: [ build-catalog-admin-service ]
uses: Informasjonsforvaltning/workflows/.github/workflows/kustomize-deploy.yaml@main
with:
Expand Down
5 changes: 4 additions & 1 deletion deploy/base/deployment-catalog-admin-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,7 @@ spec:
failureThreshold: 5
resources:
requests:
memory: 100Mi
cpu: 50m
memory: 500Mi
limits:
memory: 500Mi

0 comments on commit dcd1c90

Please sign in to comment.