Skip to content

Commit a1c6581

Browse files
committed
fix: pipeline
1 parent 79845ad commit a1c6581

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.github/workflows/docker.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@ jobs:
3131
platforms: linux/amd64,linux/arm64
3232
push: true
3333
tags: ${{ vars.DOCKER_USERNAME }}/simra-frontend:latest
34+
target: github_production
3435
build-args: |
35-
SIMRA_API_URL=${{ secrets.SIMRA_API_URL }}
3636
MAPILLARY_URL=${{ vars.MAPILLARY_URL }}
37-
MAPILLARY_ACCESS_TOKEN=${{ secrets.MAPILLARY_ACCESS_TOKEN }}
37+
secrets: |
38+
"simra_api_url=${{ secrets.SIMRA_API_URL }}"
39+
"mapillary_access_token=${{ secrets.MAPILLARY_ACCESS_TOKEN }}"
3840
3941

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:23-alpine AS localBuilder
1+
FROM node:23-alpine AS local_builder
22

33
WORKDIR /usr/src/app
44

@@ -20,7 +20,7 @@ COPY . .
2020

2121
RUN nx build --skip-nx-cache --prod
2222

23-
FROM node:23-alpine AS githubBuilder
23+
FROM node:23-alpine AS github_builder
2424

2525
WORKDIR /usr/src/app
2626

@@ -44,14 +44,14 @@ COPY . .
4444

4545
RUN nx build --skip-nx-cache --prod
4646

47-
FROM nginx:stable-alpine AS localProduction
47+
FROM nginx:stable-alpine AS local_production
4848

4949
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
5050
COPY --from=localBuilder /usr/src/app/dist/simra/browser /usr/share/nginx/html
5151

5252
EXPOSE 80
5353

54-
FROM nginx:stable-alpine AS githubProduction
54+
FROM nginx:stable-alpine AS github_production
5555

5656
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
5757
COPY --from=githubBuilder /usr/src/app/dist/simra/browser /usr/share/nginx/html

docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ services:
77
pull_policy: always
88
build:
99
context: .
10-
target: localProduction
10+
target: local_production
1111
dockerfile: Dockerfile
1212
args:
1313
SIMRA_API_URL: ${SIMRA_API_URL}

0 commit comments

Comments
 (0)