diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 44b689a3..b0e5eb3e 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -46,6 +46,18 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: "Build and push the Docker image" run: "docker build processor --pull --tag ${IMAGE} -f Dockerfile && docker push ${IMAGE}" +deploy-processor: + name: "Deploy processor to dev" + needs: "build" + runs-on: "ubuntu-20.04" + steps: + - uses: "actions/checkout@v3" + - name: "Deploy to DEV" + uses: "nais/deploy/actions/deploy@v1" + env: + "APIKEY": "${{ secrets.NAIS_DEPLOY_APIKEY }}" + "CLUSTER": "dev-gcp" + "RESOURCE": ".nais/processor-dev.yml" # "deployAppToDev": # name: "Deploy app to dev" # needs: "build" diff --git a/.nais/nais.yaml b/.nais/async-recievers.yaml similarity index 97% rename from .nais/nais.yaml rename to .nais/async-recievers.yaml index 52537553..7bf4ad7a 100644 --- a/.nais/nais.yaml +++ b/.nais/async-recievers.yaml @@ -1,7 +1,7 @@ apiVersion: "nais.io/v1alpha1" kind: "Application" metadata: - name: "ebxml-processor" + name: "async-recievers" namespace: "team-emottak" labels: "team": "team-emottak" diff --git a/.nais/processor-dev.yaml b/.nais/processor-dev.yaml new file mode 100644 index 00000000..8a04681e --- /dev/null +++ b/.nais/processor-dev.yaml @@ -0,0 +1,22 @@ +apiVersion: "nais.io/v1alpha1" +kind: "Application" +metadata: + name: "ebxml-processor" + 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" + ingresses: + - {{url}} \ No newline at end of file