Skip to content

Commit 3ae4e60

Browse files
committed
add CI folder and Dockerfile
1 parent c96c41e commit 3ae4e60

File tree

4 files changed

+51
-0
lines changed

4 files changed

+51
-0
lines changed

Dockerfile.concourse

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# The value of ECR_REPOSITORY_URI will be substituted by the Concourse build
2+
FROM {{ECR_REPOSITORY_URI}}/onsdigital/dp-concourse-tools-ubuntu-22:ubuntu22.4-jammy-20250126
3+
4+
WORKDIR /app/
5+
6+
COPY dis-migration-service .
7+
8+
CMD ["./dis-migration-service"]

ci/build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
platform: linux
3+
4+
image_resource:
5+
type: registry-image
6+
source:
7+
repository: golang
8+
tag: 1.24.11-bookworm
9+
registry_mirror:
10+
host: ((ecr_repository_uri))
11+
aws_access_key_id: ((aws_access_key_id))
12+
aws_secret_access_key: ((aws_secret_access_key))
13+
aws_region: ((aws_region))
14+
15+
inputs:
16+
- name: pull_request
17+
18+
outputs:
19+
- name: build
20+
21+
run:
22+
path: pull_request/ci/scripts/build.sh
23+
24+
caches:
25+
- path: /go

ci/concourse.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
application:
2+
repo_name: dis-migration-service
3+
helm:
4+
repo_name: dis-helm-legacy-chart
5+
values_files:
6+
image_tag_key: dis-migration-service.image.tag
7+
sandbox:
8+
- values/dis-sandbox-internal.yaml
9+
aws:
10+
ecr:
11+
application: dis-migration-service

ci/scripts/build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash -eux
2+
3+
# Build the application
4+
pushd pull_request
5+
make build-go
6+
cp build/dis-migration-service Dockerfile.concourse ../build
7+
popd

0 commit comments

Comments
 (0)