Skip to content
This repository was archived by the owner on Feb 8, 2025. It is now read-only.

Commit aa777b5

Browse files
committed
ci(api): docker build tests
1 parent a913aea commit aa777b5

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

.github/workflows/tests.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,22 @@ jobs:
8686
- name: 🧪 Test
8787
run: yarn api test
8888

89+
api-docker-build:
90+
environment: main - api
91+
runs-on: ubuntu-latest
92+
93+
steps:
94+
- name: 🚧 Checkout
95+
uses: actions/checkout@v4
96+
with:
97+
fetch-depth: 2
98+
99+
- name: 🏗️ Build
100+
run: >
101+
docker build -f ./api/Dockerfile .
102+
--build-arg TURBO_TOKEN=$TURBO_TOKEN
103+
--build-arg TURBO_TEAM=$TURBO_TEAM
104+
89105
api-ampli:
90106
runs-on: ubuntu-latest
91107
container:

api/Dockerfile

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
## ------------------------------
2-
## Args
2+
## Build
33
## ------------------------------
44

5+
FROM node:20-alpine as builder
6+
57
ARG TURBO_TEAM
68
ENV TURBO_TEAM=$TURBO_TEAM
7-
89
ARG TURBO_TOKEN
910
ENV TURBO_TOKEN=$TURBO_TOKEN
1011

11-
## ------------------------------
12-
## Build
13-
## ------------------------------
14-
15-
FROM node:20-alpine as builder
16-
1712
ENV NODE_ENV build
1813

1914
USER node

0 commit comments

Comments
 (0)