File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -154,18 +154,16 @@ jobs:
154
154
field : " app"
155
155
156
156
- name : Set up Fly
157
- uses :
superfly/flyctl-actions/[email protected]
158
- env :
159
- CLOUDINARY_URL : ${{ secrets.CLOUDINARY_URL }}
157
+ uses : superfly/flyctl-actions/setup-flyctl@master
160
158
161
159
- name : Deploy Staging
162
160
if : ${{ github.ref == 'refs/heads/dev' }}
163
- run : flyctl deploy --remote-only --build-arg COMMIT_SHA=${{ github.sha }} --app ${{ steps.app_name.outputs.value }}-staging
161
+ run : flyctl deploy --remote-only --build-arg COMMIT_SHA=${{ github.sha }} --build-arg CLOUDINARY_URL=${{ secrets.CLOUDINARY_URL }} -- app ${{ steps.app_name.outputs.value }}-staging
164
162
env :
165
163
FLY_API_TOKEN : ${{ secrets.FLY_API_TOKEN }}
166
164
167
165
- name : Deploy Production
168
166
if : ${{ github.ref == 'refs/heads/main' }}
169
- run : flyctl deploy --remote-only --build-arg COMMIT_SHA=${{ github.sha }} --app ${{ steps.app_name.outputs.value }}
167
+ run : flyctl deploy --remote-only --build-arg COMMIT_SHA=${{ github.sha }} --build-arg CLOUDINARY_URL=${{ secrets.CLOUDINARY_URL }} -- app ${{ steps.app_name.outputs.value }}
170
168
env :
171
169
FLY_API_TOKEN : ${{ secrets.FLY_API_TOKEN }}
Original file line number Diff line number Diff line change @@ -24,12 +24,14 @@ RUN npm prune --omit=dev
24
24
# Build the app
25
25
FROM base as build
26
26
27
+ ARG CLOUDINARY_URL
28
+
27
29
WORKDIR /app
28
30
29
31
COPY --from=deps /app/node_modules /app/node_modules
30
32
31
33
COPY . .
32
- RUN npm run build
34
+ RUN CLOUDINRAY_URL=${CLOUDINRAY_URL} npm run build
33
35
34
36
# Finally, build the production image with minimal footprint
35
37
FROM base
You can’t perform that action at this time.
0 commit comments