Skip to content

Commit 7e290bd

Browse files
authored
upload source maps during build step (#1012)
1 parent e3c50b4 commit 7e290bd

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ jobs:
184184
--push \
185185
--image-label ${{ github.sha }} \
186186
--build-arg COMMIT_SHA=${{ github.sha }} \
187+
--build-secret SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }} \
187188
--app ${{ steps.app_name.outputs.value }}
188189
env:
189190
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
@@ -213,16 +214,16 @@ jobs:
213214
- name: 🚀 Deploy Staging
214215
if: ${{ github.ref == 'refs/heads/dev' }}
215216
run: |
216-
IMAGE="registry.fly.io/${{ steps.app_name.outputs.value }}-staging:${{ github.sha }}"
217-
flyctl deploy --image $IMAGE --app ${{ steps.app_name.outputs.value }}-staging
217+
flyctl deploy \
218+
--image "registry.fly.io/${{ steps.app_name.outputs.value }}-staging:${{ github.sha }}" \
219+
--app ${{ steps.app_name.outputs.value }}-staging
218220
env:
219221
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
220222

221223
- name: 🚀 Deploy Production
222224
if: ${{ github.ref == 'refs/heads/main' }}
223225
run: |
224-
IMAGE="registry.fly.io/${{ steps.app_name.outputs.value }}:${{ github.sha }}"
225-
flyctl deploy --image $IMAGE \
226-
--build-secret SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}
226+
flyctl deploy \
227+
--image "registry.fly.io/${{ steps.app_name.outputs.value }}:${{ github.sha }}"
227228
env:
228229
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

0 commit comments

Comments
 (0)