-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (52 loc) · 1.79 KB
/
Copy pathsmoke-deploy-prebuilt.yml
File metadata and controls
62 lines (52 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Smoke deploy (pre-built mode)
on:
push:
branches:
- main
paths:
- "action.yml"
- "scripts/**"
- "package.json"
- "bun.lock"
- "examples/hello-prebuilt/**"
- ".github/workflows/smoke-deploy-prebuilt.yml"
workflow_dispatch:
# `pull_request` is intentionally omitted so untrusted PR code never runs with
# the deploy secrets. Maintainers can verify a PR by merging into a temporary
# branch and using `workflow_dispatch`.
permissions:
contents: read
deployments: write
concurrency:
group: smoke-deploy-prebuilt
cancel-in-progress: false
jobs:
deploy:
name: Deploy hello-prebuilt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
- name: Install application dependencies
run: bun install --frozen-lockfile
working-directory: examples/hello-prebuilt
- name: Build application
run: bun run build
working-directory: examples/hello-prebuilt
- name: Deploy to Prisma Compute
id: deploy
uses: ./
with:
api-token: ${{ secrets.SMOKE_PRISMA_API_TOKEN }}
compute-service-id: ${{ vars.SMOKE_PREBUILT_COMPUTE_SERVICE_ID }}
app-path: examples/hello-prebuilt
artifact-path: examples/hello-prebuilt/dist
entrypoint: server.js
bun-install: "false"
env-vars: |
PORT=8080
- name: Print deployment info
run: |
echo "Version: ${{ steps.deploy.outputs.version-id }}"
echo "Service endpoint: ${{ steps.deploy.outputs.service-endpoint-domain }}"
echo "Version endpoint: ${{ steps.deploy.outputs.version-endpoint-domain }}"