Skip to content

Commit 73a0141

Browse files
committed
update ci cd
1 parent 6a10ac6 commit 73a0141

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/deploy_frontend.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,12 @@ jobs:
1616
with:
1717
username: ${{ secrets.DOCKERHUB_USERNAME }}
1818
password: ${{ secrets.DOCKERHUB_TOKEN }}
19-
2019
- name: Build and push code-server
2120
uses: docker/build-push-action@v5
2221
with:
2322
context: ./mobile-magic
2423
file: ./mobile-magic/docker/Dockerfile.frontend.prod
2524
push: true
2625
tags: 100xdevs/antidevs-frontend:${{ github.sha }}
27-
env:
28-
- name: NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY
29-
value: ${{ secrets.CLERK_PUBLISHABLE_KEY }}
26+
build-args: |
27+
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=${{ secrets.CLERK_PUBLISHABLE_KEY }}

mobile-magic/docker/Dockerfile.frontend.prod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
FROM oven/bun:latest
22

33
WORKDIR /app
4+
ARG NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY
5+
ENV NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=${NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY}
46

57
COPY ./apps/frontend/ ./apps/frontend
68
COPY ./packages/ ./packages

0 commit comments

Comments
 (0)