Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,28 @@ jobs:
timeout-minutes: 10
steps:
- uses: bcgov/action-builder-ghcr@cb2629351c87dd1c2130073e4ebb7233a9653a63 # v4.4.1
id: build
with:
package: ${{ matrix.package }}
tags: dev
tag_fallback: latest
# Diff the merge commit against the previous main; diff_branch defaults to
# main, which on a push to main is always empty so nothing ever built.
diff_branch: HEAD^
# :latest is whichever image was tagged most recently by any build.
tag_fallback: dev
triggers: ('${{ matrix.package }}/')

- name: Report deployed image
shell: bash
env:
PKG: ${{ matrix.package }}
TRIGGERED: ${{ steps.build.outputs.triggered }}
DIGEST: ${{ steps.build.outputs.digest }}
run: |
[ "${TRIGGERED}" = "true" ] && SRC="fresh build of ${GITHUB_SHA}" || SRC="retagged existing :dev (unchanged)"
echo "${PKG}: ${SRC} (digest ${DIGEST:-none})"
echo "- **${PKG}**: ${SRC} — \`${DIGEST:-none}\`" >> "${GITHUB_STEP_SUMMARY}"

import:
name: Import to ImageStream
needs: [builds]
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ jobs:
with:
package: ${{ matrix.package }}
tags: ${{ github.event.number }}
tag_fallback: latest
# :latest is whichever image was tagged most recently by any build.
tag_fallback: dev
triggers: ('${{ matrix.package }}/')

import:
Expand Down
9 changes: 6 additions & 3 deletions charts/app/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,14 @@ frontend:
environment: ~
#-- Job name for logs (auto-generated if not set)
jobName: ~
#-- Resource requests and limits for Promtail sidecar
#-- Resource requests and limits for Promtail sidecar.
#-- 128Mi was too tight: promtail idles at 60-110Mi in prod, so pods sat at
#-- 85% of the limit and ContainerMemoryHigh fired. An OOMKill here is silent
#-- (the app container is unaffected) and stops frontend logs reaching Loki.
resources:
requests:
cpu: 50m
memory: 64Mi
memory: 128Mi
limits:
cpu: 200m
memory: 128Mi
memory: 256Mi
Loading