Skip to content

Commit

Permalink
configure arm64 and cron for qa env (#363)
Browse files Browse the repository at this point in the history
* configure arm64 and cron for qa env
change resource config to match utilization

* update checkout action version

* update npm packages
  • Loading branch information
nilsgstrabo authored Jun 27, 2024
1 parent ce000d3 commit bb94942
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 41 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,20 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build docker image
working-directory: public-site
env:
REF: ${{ github. sha }}
run: docker build -t radix-public-site:${REF##*/} .

validate-radixconfig:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: 'Get Azure principal token for Radix'
run: |
echo "::add-mask::$token"
echo "APP_SERVICE_ACCOUNT_TOKEN=hello-world" >> $GITHUB_ENV
- uses: actions/checkout@v4
- name: 'Validate public-site'
uses: equinor/radix-github-actions@v1
with:
Expand Down
6 changes: 3 additions & 3 deletions public-site/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 0 additions & 30 deletions radixconfig-old-name.yaml

This file was deleted.

25 changes: 22 additions & 3 deletions radixconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,39 @@ spec:
publicPort: http
environmentConfig:
- environment: qa
resources:
requests:
memory: "150Mi"
cpu: "10m"
limits:
memory: "150Mi"
cpu: "10m"
volumeMounts:
- name: tmp
path: /tmp
emptyDir:
sizeLimit: 10M
runtime:
architecture: arm64
horizontalScaling:
maxReplicas: 1
minReplicas: 0
triggers:
- name: cron
cron:
timezone: Europe/Oslo
start: 0 7 * * 1-5 # 07:00 Monday - Friday
end: 0 17 * * 1-5 # 17:00 Monday - Friday
desiredReplicas: 1
- environment: prod
replicas: 2
resources:
requests:
memory: "100Mi"
cpu: "100m"
memory: "150Mi"
cpu: "10m"
limits:
memory: "150Mi"
cpu: "120m"
cpu: "10m"
volumeMounts:
- name: tmp
path: /tmp
Expand Down

0 comments on commit bb94942

Please sign in to comment.