Skip to content

Commit

Permalink
deploy processor
Browse files Browse the repository at this point in the history
  • Loading branch information
alpet committed Sep 13, 2023
1 parent cfe9546 commit 403b149
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion .nais/nais.yaml → .nais/async-recievers.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: "nais.io/v1alpha1"
kind: "Application"
metadata:
name: "ebxml-processor"
name: "async-recievers"
namespace: "team-emottak"
labels:
"team": "team-emottak"
Expand Down
22 changes: 22 additions & 0 deletions .nais/processor-dev.yaml
Original file line number Diff line number Diff line change
@@ -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}}

0 comments on commit 403b149

Please sign in to comment.