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

Commit b51dea4

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

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

.github/workflows/tests.yaml

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

89+
api-docker-build:
90+
runs-on: ubuntu-latest
91+
92+
steps:
93+
- name: 🚧 Checkout
94+
uses: actions/checkout@v4
95+
with:
96+
fetch-depth: 2
97+
98+
- name: 🏗️ Build
99+
run: >
100+
docker build -f ./api/Dockerfile .
101+
--build-arg TURBO_TOKEN=$TURBO_TOKEN
102+
--build-arg TURBO_TEAM=$TURBO_TEAM
103+
89104
api-ampli:
90105
runs-on: ubuntu-latest
91106
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)