Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
a82d2a7
feat(GAT-8635): Update search service to include keywords for Publica…
dnhdruk Mar 11, 2026
0361eda
fix(GAT-8640): swagger update tags (#1577)
dnhdruk Mar 11, 2026
a3e6bbe
fix(GAT-0000): fix for the collection observer (#1579)
dnhdruk Mar 12, 2026
ff14f83
fix(GAT-8664): loading Data uses (#1581)
dnhdruk Mar 12, 2026
c1175e8
feat(GAT-7376): Create ability to run now for Predefined Integration …
dnhdruk Mar 13, 2026
2b9fad8
feat(GAT-8329): Extend Gateway Metadata Integration (#1583)
dnhdruk Mar 13, 2026
db490d8
feat(GAT-8465): rework of widget colours (#1584)
loki-sinclair-hdruk Mar 13, 2026
4d1670d
updated semantic pipeline merge back to dev
Vikas00230 Mar 16, 2026
f7900b9
updated semantic pipeline merge back to dev
Vikas00230 Mar 16, 2026
8b54698
chore(GAT-1234): Delete app/Console/Commands/UploadImagesPostMigratio…
soringumeni1 Mar 17, 2026
3b6cb74
chore(GAT-1234): Delete app/Console/Commands/UploadImagesPostMigratio…
soringumeni1 Mar 17, 2026
0aa08de
added extracted release version section from the PR
Vikas00230 Mar 17, 2026
73be7e0
added extracted release version section from the PR
Vikas00230 Mar 17, 2026
b9804bb
updated semantic release pipeline to pick version from chart file
Vikas00230 Mar 17, 2026
6eec9e4
feat(GAT-7581): custodian owned or associated entities (#1589)
dnhdruk Mar 17, 2026
1711944
feat(GAT-7966): updated semantic pipeline merge back to dev (#1585)
Vikas00230 Mar 17, 2026
2464a08
feat(GAT-7581): custodian owned or associated entities update (#1590)
dnhdruk Mar 17, 2026
4cfc186
feat(GAT-7181): Dataset Versioning V3 endpoints using JSONPatch delta…
loki-sinclair-hdruk Mar 18, 2026
bd76c9b
feat(GAT-7581): custodian network owned or associated entities (#1591)
dnhdruk Mar 18, 2026
a927148
fix(GAT-0000): lint (#1592)
dnhdruk Mar 18, 2026
7ecfdc9
RELEASE: 1.33.0 (#1586)
soringumeni1 Mar 19, 2026
4cdad63
chore(release): 2.37.0 [skip ci]
semantic-release-bot Mar 19, 2026
48833ae
Merge branch 'main' into dev
actions-user Mar 19, 2026
4e9ed48
feat(GAT-8500): bigquery service (#1593)
dnhdruk Mar 19, 2026
5669fd3
feat(GAT-8500): dashboard data custodian resources (#1594)
dnhdruk Mar 24, 2026
f62aaa5
feat(GAT-8504): data custodian dashboard dataset views widget (#1595)
dnhdruk Mar 24, 2026
fc6e0c9
feat(GAT-8506): Data Custodian dashboard top dataset views widget (#1…
dnhdruk Mar 25, 2026
a0aff46
feat(GAT-8488): Update permission for route (#1598)
philreekshdr Mar 25, 2026
d45d92f
fix(GAT-0000): Reworks cr_uid management away from session and into s…
loki-sinclair-hdruk Mar 25, 2026
b35e866
feat(GAT-8508): data custodian dashboard other views (#1599)
dnhdruk Mar 25, 2026
b95cd53
feat(GAT-8510): data custodian dashboard enquiries and requests (#1601)
dnhdruk Mar 26, 2026
87aa6c1
feat(GAT-8689): dashboard data custodian format csv (#1602)
dnhdruk Mar 27, 2026
261a045
feat(GAT-7284): Pass answer index to dar file upload (#1603)
philreekshdr Mar 27, 2026
fa041dd
sync: update dev with latest main changes from release 2.38.0 (squash…
actions-user Mar 31, 2026
ec78af1
fix(GAT-0000): testing rquest session (#1606)
loki-sinclair-hdruk Apr 1, 2026
0d28a16
feat(GAT-8694): Review, update access confirmation emails for revised…
dnhdruk Apr 7, 2026
f81d37d
feat(GAT-8249): Revise error handling for Data Use Register upload (#…
dnhdruk Apr 9, 2026
3aa2261
fix(GAT-8748): Unable to save content to "Results / Insights" section…
dnhdruk Apr 10, 2026
8d97f62
fix(GAT-8752): Add is_cohort_discovery field to DatasetResource (#1614)
spco Apr 13, 2026
a62dbe8
sync: update dev with latest main changes from release 2.39.0 (squash…
actions-user Apr 14, 2026
f5a9ff4
sync: update dev with latest main changes from release 2.39.1 (squash…
actions-user Apr 14, 2026
0a8cdf8
feat(GAT-8135): Data Access Module business intelligence dashboard (#…
dnhdruk Apr 16, 2026
09d5ab1
fix(GAT-0000): fix autoreply ars (#1618)
dnhdruk Apr 16, 2026
e51bfb1
fix(GAT-8764): update node packages (#1622)
dnhdruk Apr 17, 2026
1e1afee
fix(GAT-7839): NWL ASC issue with update on follow up (#1624)
dnhdruk Apr 24, 2026
957345a
fix(GAT-8786): PHS - error on External Publications link (#1625)
dnhdruk Apr 24, 2026
2dbde6d
fix(GAT-8785): LSDE each run only brings a few datasets over each tim…
dnhdruk Apr 27, 2026
6bf0a27
fix(GAT-8776): update ars - for ooo (#1627)
dnhdruk Apr 29, 2026
80d0dd8
feat(GAT-8759): Update Data Access Module business intelligence dashb…
dnhdruk May 1, 2026
40218dc
feat(GAT-8737): Fundamental optimisations for search upgrades (#1611)
loki-sinclair-hdruk May 1, 2026
cbe3e53
feat(GAT-8833): Creating a command that clones a template from one te…
dnhdruk May 6, 2026
082516b
updated reusable pipelines
Vikas00230 May 7, 2026
1b735ee
sync: update dev with latest main changes from release 2.40.0 (squash…
actions-user May 7, 2026
dbcde8f
reverted action lint file
Vikas00230 May 8, 2026
bf92d09
feat(GAT-8812): updated reusable pipelines (#1630)
Vikas00230 May 8, 2026
23f727c
sync: update dev with latest main changes from release 2.41.0 (squash…
actions-user May 8, 2026
ddfbb28
removed permissions section from the semantic pipeline
Vikas00230 May 12, 2026
eb43df3
fix(GAT-8812): removed permissions section from the semantic pipeline…
Vikas00230 May 12, 2026
53b61b8
removed gar name
Vikas00230 May 12, 2026
7e91eba
removed gar name
Vikas00230 May 12, 2026
2875880
fix(GAT-8812): removed gar name (#1637)
Vikas00230 May 12, 2026
13b742a
feat(GAT-8774): Import DAR MK1 NNRD data (#1634)
dnhdruk May 12, 2026
64e995e
chore(GAT-1234): remove duplicate reindexing (#1638)
dnhdruk May 12, 2026
0415dff
updated env variable
Vikas00230 May 12, 2026
10b7383
chore(GAT-8892): remove unnecessary commands and files (#1639)
dnhdruk May 12, 2026
ce5010a
fix(GAT-8785): Introduces a few fixes for edge-cases in gmi. Also mov…
loki-sinclair-hdruk May 12, 2026
ec8bea7
updated env variable
Vikas00230 May 12, 2026
8faa465
fix(GAT-8812): updated env variable (#1640)
Vikas00230 May 12, 2026
f89a112
fix(GAT-8785): #4 adds trapping for potential traser translation erro…
loki-sinclair-hdruk May 13, 2026
8987660
fix(GAT-8785): Make elastic indexing calls async to avoid gmi falling…
loki-sinclair-hdruk May 13, 2026
246a35d
fix(GAT-8884): [ClaudeAI] Security review highlighted vulnerabilities…
loki-sinclair-hdruk May 13, 2026
e1f6e34
fix(GAT-8898): update reindex es (#1644)
dnhdruk May 15, 2026
e83f05d
feat(GAT-8907): Add logging of the download data buttons on the datas…
dnhdruk May 19, 2026
12bebf6
chore(GAT-0000): Security.md and CODEOWNERS file for transparency (#1…
loki-sinclair-hdruk May 19, 2026
d175655
feat(GAT-8924): Adds partner_context to dataset to ensure separation …
loki-sinclair-hdruk May 21, 2026
7054106
fix(GAT-7743): Publications linked to dataset not showing all results…
dnhdruk May 21, 2026
13f012a
sync: update dev with latest main changes from release 2.42.0 (squash…
actions-user May 21, 2026
572b06c
fix(GAT-8872): Content Variance SQL Injection: Database Server (#1651)
dnhdruk May 22, 2026
74311ac
fix(GAT-8926): fix collection has datasets (#1652)
dnhdruk May 22, 2026
988b847
feat(GAT-8895): Add email into workflow when Integration job fails (#…
dnhdruk Jun 1, 2026
d5d1fec
feat(GAT-8977): Investigate logging when the widget starts running on…
dnhdruk Jun 1, 2026
c0215dc
fix(GAT-8812): updated semantic pipeline (#1655)
Vikas00230 Jun 3, 2026
db273d4
feat(GAT-8978): brings search aggregator more inline with production …
loki-sinclair-hdruk Jun 3, 2026
def0e82
fix(GAT-8925): Properly handles SDE expiry isolated from general coho…
loki-sinclair-hdruk Jun 8, 2026
c8778c2
chore(GAT-1234): Change pull_request to pull_request_target event (#1…
soringumeni1 Jun 8, 2026
ea3b63e
feat(GAT-8796): Add dataSource to filter seeder (#1662)
philreekshdr Jun 9, 2026
c481cac
fix(GAT-8796): Fixes sorting missing from refactor. Fixes naming of n…
loki-sinclair-hdruk Jun 11, 2026
5045ee0
feat(GAT-8796): allows deferred search providers. allows overriding o…
loki-sinclair-hdruk Jun 15, 2026
8426b9f
feat(GAT-0000): add CRUK project grants with dataset linkage (#1656)
cocoon02 Jun 16, 2026
b37594b
feat: seed 20 CRUK datasets from cruk_dummy_data fixtures
cocoon02 Jun 16, 2026
a59310c
refactor: move CRUK dataset seeding to dedicated seeders
cocoon02 Jun 16, 2026
0f738f5
feat(GAT-0000): seed 20 CRUK datasets from cruk_dummy_data fixtures (…
cocoon02 Jun 16, 2026
ac3f956
merge upstream/dev to bring in partner_context migration and latest c…
cocoon02 Jun 16, 2026
da978e0
feat(GAT-9012): First round of template work - refactor the seeder fi…
loki-sinclair-hdruk Jun 17, 2026
9a526ec
feat(GAT-9012): Fixes a small edge case where some integration errors…
loki-sinclair-hdruk Jun 17, 2026
8034869
feat(GAT-9012): 3 - tweaks redis config and job firing (#1669)
loki-sinclair-hdruk Jun 18, 2026
db0fa09
feat(GAT-9027): Do not send success email when no changes have been r…
loki-sinclair-hdruk Jun 19, 2026
274169c
fix: allow x-partner-context header in CORS preflight
cocoon02 Jun 22, 2026
0aad073
fix(GAT-9031): Ensures we don\'t leak any sensitive infrastructure in…
loki-sinclair-hdruk Jun 22, 2026
6eba7a1
feat(GAT-8501): Make TeamAdmin an actual admin (#1674)
philreekshdr Jun 22, 2026
5d298d9
fix(GAT-0000): add x-partner-context header (#1673)
cocoon02 Jun 22, 2026
215385c
feat(GAT-9036): Make ARDC results mirror our own per page (#1676)
loki-sinclair-hdruk Jun 22, 2026
93de4a1
feat(GAT-0000): filter dataset search by partner context
cocoon02 Jun 23, 2026
52ce5c8
Merge upstream/dev into feat/cruk-dummy-data-seeding
cocoon02 Jun 23, 2026
c67eeea
Align CRUK dummy dataset fixtures with GWDM 2.1 schema.
cocoon02 Jun 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 8 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,11 @@ GOOGLE_CLOUD_LOGGING_NAME=log-name
# GCP project path for federation
GOOGLE_APPLICATION_PROJECT_PATH="projects/google-cloud-project-number"

# GCP BigQuery
GOOGLE_CLOUD_BIGQUERY_PROJECT_ID=google-cloud-project-id
GOOGLE_CLOUD_BIGQUERY_DASHBOARD_DATASET=gcp_bigquery_dashboard_dataset
GOOGLE_CLOUD_BIGQUERY_DASHBOARD_TABLE=gcp_bigquery_dashboard_table

# GCP PubSub - for local
GOOGLE_APPLICATION_CREDENTIALS="/path/to/service/credentials"

Expand Down Expand Up @@ -248,4 +253,6 @@ INDEX_ELASTIC=true
GOOGLE_APPLICATION_CREDENTIALS="/path/to/credentials_file.json"
GOOGLE_APPLICATION_PROJECT_PATH="projects/<project_id>"
GATEWAY_API_USER_ID=""
TEST_USER_PASSWORD=""
TEST_USER_PASSWORD=""

SEARCH_DEFERRED_TTL=60
64 changes: 64 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# CODEOWNERS
# Each line is a file pattern followed by one or more owners.
# Order matters — last matching pattern takes precedence.
# Docs: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners

# ====================
# Default — catch-all
# ====================
* @HDRUK/tech-team-backend

# ====================
# CI / DevOps
# ====================
.github/ @HDRUK/tech-team-devops @HDRUK/tech-team-backend
docker-compose*.yml @HDRUK/tech-team-devops @HDRUK/tech-team-backend
Dockerfile* @HDRUK/tech-team-devops @HDRUK/tech-team-backend
.env.example @HDRUK/tech-team-devops @HDRUK/tech-team-backend

# ====================
# App Core
# ====================
app/Http/Controllers/ @HDRUK/tech-team-backend
app/Http/Middleware/ @HDRUK/tech-team-backend
app/Http/Requests/ @HDRUK/tech-team-backend
app/Models/ @HDRUK/tech-team-backend
app/Services/ @HDRUK/tech-team-backend
app/Repositories/ @HDRUK/tech-team-backend
app/Providers/ @HDRUK/tech-team-backend

# ====================
# Routes
# ====================
routes/ @HDRUK/tech-team-backend

# ====================
# Database
# ====================
database/migrations/ @HDRUK/tech-team-backend @HDRUK/tech-team-devops
database/seeders/ @HDRUK/tech-team-backend @HDRUK/tech-team-devops
database/factories/ @HDRUK/tech-team-backend

# ====================
# Configuration
# ====================
config/ @HDRUK/tech-team-backend @HDRUK/tech-team-devops

# ====================
# Tests
# ====================
tests/ @HDRUK/tech-team-backend

# ====================
# Dependencies
# ====================
composer.json @HDRUK/tech-team-backend @HDRUK/tech-team-devops
composer.lock @HDRUK/tech-team-backend @HDRUK/tech-team-devops
package.json @HDRUK/tech-team-backend @HDRUK/tech-team-devops

# ====================
# Docs
# ====================
README.md @HDRUK/tech-team-backend
docs/ @HDRUK/tech-team-backend
*.md @HDRUK/tech-team-backend
21 changes: 21 additions & 0 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Security Policy

This security policy applies to public projects under [HDRUK organisation][gh-organization] on GitHub.

## Security/Bugfix Versions

Security and bug fixes are generally provided only for the last minor version.
Fixes are released either as part of the next minor version or as an on-demand patch version.

Security fixes are given priority and might be enough to cause a new version to be released.

## Reporting a vulnerability

We encourage responsible disclosure of security vulnerabilities.
If you find something suspicious, we encourage and appreciate your report!

### Ways to report

Please do not report security vulnerabilities through public GitHub issues. Instead, for the reports to reach maintainers as soon as possible, the preferred way is to use our reporting portal [here](https://hdruk.atlassian.net/servicedesk/customer/portal/7/group/82/create/78?customfield_10752=11727). This creates a private communication channel between the reporter and the maintainers.

[gh-organization]: https://github.com/HDRUK
14 changes: 6 additions & 8 deletions .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
name: Lint GitHub Workflows

permissions:
contents: read
actions: read

on:
pull_request:
paths:
- ".github/workflows/**/*.yml"
- ".github/workflows/**/*.yaml"

push:
paths:
- ".github/workflows/**/*.yml"
- ".github/workflows/**/*.yaml"

jobs:
actionlint:
name: actionlint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Lint workflow files
uses: reviewdog/action-actionlint@v1
uses: HDRUK/github-actions-templates/.github/workflows/actionlint.yaml@main
102 changes: 10 additions & 92 deletions .github/workflows/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Deploy Release
run-name: ${{ github.actor }} triggered deploy to ${{ github.event.inputs.env }} pipeline
run-name: ${{ github.actor }} triggered deploy to ${{ github.event.inputs.env }} pipeline for tag version ${{ github.event.inputs.tag_version }}

on:
workflow_dispatch:
Expand All @@ -13,99 +13,17 @@ on:
- preprod
- prod
tag_version:
description: 'Tag version to be deployed'
description: 'Tag version to deploy'
required: true
default: ''

env:
PROJECT_ID: "${{ secrets.PROJECT_ID }}"
GAR_LOCATION: "${{ secrets.GAR_LOCATION }}"
SLACK_WEBHOOK_URL: "${{ secrets.SLACK_WEBHOOK_URL}}"
SLACK_CHANNEL: "${{ secrets.GITHUBACTIONS_SLACK_CHANNEL }}"

jobs:
deploy:
permissions:
contents: write
id-token: write

runs-on: ubuntu-latest
environment: ${{ github.event.inputs.env }}
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
with:
ref: main

- name: Google Auth
id: auth
uses: "google-github-actions/auth@v2"
with:
token_format: "access_token"
project_id: "${{ secrets.PROJECT_ID }}"
workload_identity_provider: "${{ secrets.WIF_PROVIDER }}"
service_account: "${{ secrets.WIF_SERVICE_ACCOUNT }}"

- name: Deploy to Cloud Run
uses: actions-hub/gcloud@540.0.0
id: deploy
env:
PROJECT_ID: ${{ secrets.PROJECT_ID }}
PROD_PROJECT_ID: ${{ secrets.PROD_PROJECT_ID }}
GAR_LOCATION: ${{ secrets.GAR_LOCATION }}
GAR_NAME: ${{ secrets.GAR_NAME }}
SERVICE_NAME: "${{ secrets.SERVICE_NAME }}"
SERVICE_REGION: "${{ secrets.SERVICE_REGION }}"
with:
args: run services update '${{ env.SERVICE_NAME }}' --image='${{ env.GAR_LOCATION }}'-docker.pkg.dev/'${{ env.PROD_PROJECT_ID }}'/'${{ env.GAR_NAME }}'/${{ github.event.inputs.tag_version }}:latest --region='${{ env.SERVICE_REGION }}' --project='${{ env.PROJECT_ID }}'

- name: Trigger AppCheck scan
id: appcheck-scan
if: ${{ success() && github.event.inputs.env == 'preprod' }}
env:
APPCHECK_API_KEY: ${{ secrets.APPCHECK_API_KEY }}
APPCHECK_SCAN_ID: ${{ secrets.APPCHECK_SCAN_ID }}
shell: bash
run: |
set -euo pipefail

if [[ -z "${APPCHECK_API_KEY:-}" || -z "${APPCHECK_SCAN_ID:-}" ]]; then
echo "AppCheck secrets are not set. Skipping scan trigger." >&2
exit 0
fi

BASE_URL="https://api.appcheck-ng.com/api/v1/${APPCHECK_API_KEY}/scan/${APPCHECK_SCAN_ID}"

echo "Checking AppCheck scan status..."

STATUS_JSON=$(curl -fsSL "${BASE_URL}/status" || true)
# Extract the 'status' field from the response
if command -v jq >/dev/null 2>&1; then
STATUS=$(echo "$STATUS_JSON" | jq -r '.status // empty' | tr '[:upper:]' '[:lower:]')
else
STATUS=$(echo "$STATUS_JSON" | sed -n 's/.*"status"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' | tr '[:upper:]' '[:lower:]')
fi
echo "Current status: ${STATUS:-unknown}"
case "${STATUS}" in
running|paused|detached)
echo "Existing scan appears active (${STATUS}). Aborting before starting a new one..."
curl -fsSL -X POST "${BASE_URL}/abort" -H "Content-Length: 0" || true
sleep 60
;;
*)
echo "No active scan detected or status unknown; proceeding to start."
;;
esac
echo "Starting new AppCheck scan..."
curl -fsSL -X POST "${BASE_URL}/start" -H "Content-Length: 0"

- name: Run Notification
id: runnotificationsent
uses: act10ns/slack@v1
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
channel: ${{ env.SLACK_CHANNEL }}
message: Deploying tag ${{ github.event.inputs.tag_version }} to ENV ${{ github.event.inputs.env }} ${{ job.status }}
if: always()
uses: HDRUK/github-actions-templates/.github/workflows/deploy-release.yml@main
with:
env: ${{ github.event.inputs.env }}
tag_version: ${{ github.event.inputs.tag_version }}
chart_path: chart/gateway-api/Chart.yaml
git_ref: main
run_scan: true
secrets: inherit
118 changes: 13 additions & 105 deletions .github/workflows/dev_deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,116 +1,24 @@
name: Build and deploy to DEV
run-name: ${{ github.actor }} triggered deploy to DEV pipeline
run-name: ${{ github.actor }} triggered deploy to DEV pipeline

on:
push:
branches:
- 'dev'

env:
PROJECT_ID: '${{ secrets.PROJECT_ID }}'
GAR_LOCATION: '${{ secrets.GAR_LOCATION }}'
SLACK_WEBHOOK_URL: '${{ secrets.SLACK_WEBHOOK_URL}}'
SLACK_CHANNEL: '${{ secrets.GITHUBACTIONS_SLACK_CHANNEL }}'
- dev

jobs:
build:
name: build
permissions:
contents: write
id-token: write

runs-on: ubuntu-latest
environment: dev
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
with:
ref: dev

- name: Read VERSION file
id: getversion
run: |
sed -n 's/^appVersion:\(.*\)/\1/p' < "chart/gateway-api/Chart.yaml" > "version"
echo "version=$(sed 's/.*\"\(.*\)\".*/\1/g' "version")" >> "$GITHUB_OUTPUT"

- name: Google Auth
id: auth
uses: 'google-github-actions/auth@v2'
with:
token_format: 'access_token'
workload_identity_provider: '${{ secrets.WIF_PROVIDER }}'
service_account: '${{ secrets.WIF_SERVICE_ACCOUNT }}'

- name: Login to GAR
id: garlogin
uses: docker/login-action@v3
with:
registry: ${{ env.GAR_LOCATION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.PROJECT_ID }}
username: oauth2accesstoken
password: ${{ steps.auth.outputs.access_token }}

- name: Build and Push Container
id: build
shell: bash
env:
GAR_LOCATION: ${{ secrets.GAR_LOCATION }}
PROJECT_ID: ${{ secrets.PROJECT_ID }}
GAR_NAME: ${{ secrets.GAR_NAME_API }}

run: |-
docker build -t '${{ env.GAR_LOCATION }}'-docker.pkg.dev/'${{ env.PROJECT_ID }}'/'${{ env.GAR_NAME }}'/${{ steps.getversion.outputs.version }}:${{ github.sha }} -t '${{ env.GAR_LOCATION }}'-docker.pkg.dev/'${{ env.PROJECT_ID }}'/'${{ env.GAR_NAME }}'/${{ steps.getversion.outputs.version }}:latest ./
docker push --all-tags '${{ env.GAR_LOCATION }}'-docker.pkg.dev/'${{ env.PROJECT_ID }}'/'${{ env.GAR_NAME }}'/${{ steps.getversion.outputs.version }}
uses: HDRUK/github-actions-templates/.github/workflows/docker-build.yaml@main
with:
chart_path: chart/gateway-api/Chart.yaml
environment: dev
secrets: inherit

deploy:
name: deploy
needs: build
permissions:
contents: write
id-token: write

runs-on: ubuntu-latest
environment: dev
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
with:
ref: dev

- name: Google Auth
id: auth
uses: 'google-github-actions/auth@v2'
with:
token_format: 'access_token'
workload_identity_provider: '${{ secrets.WIF_PROVIDER }}'
service_account: '${{ secrets.WIF_SERVICE_ACCOUNT }}'

- name: Read VERSION file
id: getversion
run: |
sed -n 's/^appVersion:\(.*\)/\1/p' < "chart/gateway-api/Chart.yaml" > "version"
echo "version=$(sed 's/.*\"\(.*\)\".*/\1/g' "version")" >> "$GITHUB_OUTPUT"

- name: Deploy to Cloud Run
uses: actions-hub/gcloud@540.0.0
id: deploy
env:
PROJECT_ID: ${{ secrets.PROJECT_ID }}
GAR_LOCATION: ${{ secrets.GAR_LOCATION }}
GAR_NAME: ${{ secrets.GAR_NAME_API }}
SERVICE_NAME: '${{ secrets.SERVICE_NAME_API }}'
SERVICE_REGION: '${{ secrets.SERVICE_REGION_API }}'

with:
args: run services update '${{ env.SERVICE_NAME }}' --image='${{ env.GAR_LOCATION }}'-docker.pkg.dev/'${{ env.PROJECT_ID }}'/'${{ env.GAR_NAME }}'/${{ steps.getversion.outputs.version }}:${{ github.sha }} --region='${{ env.SERVICE_REGION }}' --project='${{ env.PROJECT_ID }}'

- name: Run Notification
id: runnotificationsent
uses: act10ns/slack@v1
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
channel: ${{ env.SLACK_CHANNEL }}
message: Deploying {{ env.GITHUB_REF_NAME }} branch to DEV ${{ job.status }}
if: always()
uses: HDRUK/github-actions-templates/.github/workflows/deploy-release.yml@main
with:
env: dev
chart_path: chart/gateway-api/Chart.yaml
git_ref: dev
secrets: inherit
Loading
Loading