-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yml
More file actions
67 lines (64 loc) · 2.07 KB
/
action.yml
File metadata and controls
67 lines (64 loc) · 2.07 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
63
64
65
66
67
name: 'Rivet Deploy'
description: 'Build and deploy Docker images to Rivet managed pools'
author: 'Rivet'
branding:
icon: 'server'
color: 'orange'
inputs:
rivet-token:
description: 'Rivet Cloud API token'
required: true
rivet-endpoint:
description: 'Rivet Engine API endpoint'
required: false
default: 'https://api.rivet.dev'
github-token:
description: 'GitHub token for PR comments'
required: false
default: ${{ github.token }}
main-branch:
description: 'Main branch name for production deployments'
required: false
default: 'main'
docker-build-path:
description: 'Docker build context directory'
required: false
default: '.'
dockerfile-path:
description: 'Dockerfile location'
required: false
default: 'Dockerfile'
runner-config:
description: 'JSON property overrides for runner configuration'
required: false
default: '{}'
managed-pool-config:
description: 'JSON property overrides for managed pool configuration'
required: false
default: '{}'
prod-namespace:
description: '(Advanced) Override the production namespace slug instead of auto-detecting the first prod-* namespace'
required: false
default: ''
runs:
using: 'composite'
steps:
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Deploy to Rivet
shell: bash
env:
GITHUB_TOKEN: ${{ inputs.github-token }}
RIVET_CLOUD_TOKEN: ${{ inputs.rivet-token }}
RIVET_ENGINE_ENDPOINT: ${{ inputs.rivet-endpoint }}
PR_NUMBER: ${{ github.event.pull_request.number || '' }}
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
REPO_FULL_NAME: ${{ github.repository }}
RUN_ID: ${{ github.run_id }}
MAIN_BRANCH: ${{ inputs.main-branch }}
DOCKER_BUILD_PATH: ${{ inputs.docker-build-path }}
DOCKERFILE_PATH: ${{ inputs.dockerfile-path }}
MANAGED_POOL_CONFIG: ${{ inputs.managed-pool-config }}
PROD_NAMESPACE_OVERRIDE: ${{ inputs.prod-namespace }}
run: bun run ${{ github.action_path }}/src/index.ts