Skip to content

Commit fcd1a3e

Browse files
Merge pull request #353 from propeller-heads/cluster-test/dc/ENG-4949-dockerfile-build-and-push
feat: Add Dockerfile.integration-test
2 parents 44eec43 + dbbebd7 commit fcd1a3e

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/workflows/v2-main-workflow.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,22 @@ jobs:
4040
secrets:
4141
app_id: ${{ secrets.APP_ID }}
4242
app_private_key: ${{ secrets.APP_PRIVATE_KEY }}
43+
44+
build-and-push-integration-test:
45+
needs:
46+
- release
47+
uses: propeller-heads/ci-cd-templates/.github/workflows/build-and-push-docker-image.yaml@main
48+
permissions:
49+
id-token: write
50+
contents: read
51+
with:
52+
image_tag: ${{ needs.release.outputs.next_release_version }}
53+
image_name: tycho-integration-test
54+
dockerfile_path: Dockerfile.integration-test
55+
secrets:
56+
app_id: ${{ secrets.APP_ID }}
57+
app_private_key: ${{ secrets.APP_PRIVATE_KEY }}
58+
role_to_assume: ${{ secrets.ROLE_TO_ASSUME }}
59+
aws_region: ${{ secrets.AWS_REGION }}
60+
repository_url: ${{ secrets.REPOSITORY_URL }}
61+
domain_owner: ${{ secrets.DOMAIN_OWNER }}

Dockerfile.integration-test

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM rust:1.82-bookworm AS builder
2+
WORKDIR /build
3+
COPY . .
4+
RUN cargo build --release --package tycho-integration-test
5+
6+
FROM debian:bookworm-slim
7+
WORKDIR /opt/tycho-integration-test
8+
COPY --from=builder /build/target/release/tycho-integration-test ./tycho-integration-test
9+
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
10+
CMD ["./tycho-integration-test"]

0 commit comments

Comments
 (0)