diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 8c036505..b90a9b5d 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -58,10 +58,10 @@ jobs: - name: "Deploy to DEV" uses: "nais/deploy/actions/deploy@v1" env: - "APIKEY": "${{ secrets.NAIS_DEPLOY_APIKEY }}" - "CLUSTER": "dev-gcp" - "RESOURCE": ".nais/processor-dev.yaml" - "VAR": image=${IMAGE_EBMS} + APIKEY: "${{ secrets.NAIS_DEPLOY_APIKEY }}" + CLUSTER: "dev-gcp" + RESOURCE: ".nais/processor-dev.yaml" + IMAGE: ${{env.IMAGE_EBMS}} deploy-cpa-repo: name: "Deploy cpa-repo to dev" needs: "build" @@ -71,10 +71,10 @@ jobs: - name: "Deploy to DEV" uses: "nais/deploy/actions/deploy@v1" env: - "APIKEY": "${{ secrets.NAIS_DEPLOY_APIKEY }}" - "CLUSTER": "dev-gcp" - "RESOURCE": ".nais/cpa-repo-dev.yaml" - "VAR": image=${IMAGE_CPA} + APIKEY: "${{ secrets.NAIS_DEPLOY_APIKEY }}" + CLUSTER: "dev-gcp" + RESOURCE: ".nais/cpa-repo-dev.yaml" + IMAGE: ${{env.IMAGE_CPA}} # "deployAppToDev": # name: "Deploy app to dev" # needs: "build" diff --git a/.nais/cpa-repo-dev.yaml b/.nais/cpa-repo-dev.yaml new file mode 100644 index 00000000..cd62f84e --- /dev/null +++ b/.nais/cpa-repo-dev.yaml @@ -0,0 +1,22 @@ +apiVersion: "nais.io/v1alpha1" +kind: "Application" +metadata: + name: "cpa-repo" + namespace: "team-emottak" + labels: + "team": "team-emottak" +spec: + image: {{image}} + replicas: + min: 1 + max: 1 + cpuThresholdPercentage: 50 + resources: + limits: + cpu: "200m" + memory: "256Mi" + requests: + cpu: "200m" + memory: "256Mi" + inngresses: + - "https://cpa-repo.intern.dev.nav.no" \ No newline at end of file