Skip to content

Use kilometres for v3 reverse radius, matching Photon and v2 #86

Use kilometres for v3 reverse radius, matching Photon and v2

Use kilometres for v3 reverse radius, matching Photon and v2 #86

Workflow file for this run

name: Proxy — CI
on:
push:
branches: [ main ]
paths:
- 'proxy/**'
- 'gradle/**'
- '*gradle*'
- '.github/workflows/proxy.yml'
- '.github/workflows/deploy-and-test.yml'
- '.github/actions/**'
- '!**/*.md'
- 'helm/geocoder-proxy/**'
pull_request:
paths:
- 'proxy/**'
- 'gradle/**'
- '*gradle*'
- '.github/workflows/proxy.yml'
- '.github/workflows/deploy-and-test.yml'
- '.github/actions/**'
- '!**/*.md'
- 'helm/geocoder-proxy/**'
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
build-push:
name: Proxy
runs-on: ubuntu-latest
timeout-minutes: 600
permissions:
actions: read
contents: write
id-token: write
security-events: write
pull-requests: write
outputs:
image_tag: ${{ steps.build.outputs.image_tag }}
steps:
- uses: actions/checkout@v6
- name: Build Proxy image
id: build
uses: ./.github/actions/build-proxy-image
with:
push: ${{ github.event_name != 'pull_request' }}
workload_identity_provider: ${{ vars.CI_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ vars.CI_SERVICE_ACCOUNT }}
deploy-dev:
name: Dev
needs: build-push
if: github.event_name == 'push'
uses: ./.github/workflows/deploy-and-test.yml
with:
environment: dev
image: "geocoder-proxy:${{ needs.build-push.outputs.image_tag }}"
chart: helm/geocoder-proxy
namespace: geocoder
release_name: geocoder-proxy
values: values-kub-ent-dev.yaml
require_approval: false
secrets: inherit
deploy-tst:
name: Staging
needs: [ build-push, deploy-dev ]
if: |
!cancelled() &&
needs.deploy-dev.result == 'success'
uses: ./.github/workflows/deploy-and-test.yml
with:
environment: tst
image: "geocoder-proxy:${{ needs.build-push.outputs.image_tag }}"
chart: helm/geocoder-proxy
namespace: geocoder
release_name: geocoder-proxy
secrets: inherit
deploy-prd:
name: Production
needs: [ build-push, deploy-tst ]
if: |
!cancelled() &&
needs.deploy-tst.result == 'success'
uses: ./.github/workflows/deploy-and-test.yml
with:
environment: prd
image: "geocoder-proxy:${{ needs.build-push.outputs.image_tag }}"
chart: helm/geocoder-proxy
namespace: geocoder
release_name: geocoder-proxy
secrets: inherit
tag-prod-approved:
name: Tag prod-approved
needs: deploy-prd
if: |
!cancelled() &&
needs.deploy-prd.result == 'success'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v6
- name: Update prod-approved tag
run: |
git tag -f prod-approved
git push -f origin prod-approved
notify-slack:
needs: [ deploy-dev, deploy-tst, deploy-prd ]
if: failure()
runs-on: ubuntu-latest
steps:
- uses: slackapi/slack-github-action@v2
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL_HENRIK }}
webhook-type: incoming-webhook
payload: |
text: "❌ *${{ github.workflow }}* failed: <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|run>"