-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yaml
42 lines (39 loc) · 1.14 KB
/
action.yaml
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
name: "Auto-deploy to Zaneops"
author: Fredkiss3
branding:
icon: play
color: blue
description: "Deploy to zaneops automatically on git push"
inputs:
SERVICE_IMAGE:
description: "The new image of the service to deploy"
required: true
DEPLOY_WEBHOOK_URL:
description: "URL to deploy your service"
required: true
COMMIT_MESSAGE:
description: "Optional commit message associated with the deployment"
required: false
EXTRA_HEADERS:
description: "Optional extra headers to pass to all the requests encoded as JSON"
required: false
runs:
using: "composite"
steps:
- uses: actions/checkout@v4
with:
repository: "zane-ops/auto-deploy-action"
ref: "v4"
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install packages and Deploy to zaneops
shell: bash
run: |
bun install --frozen-lockfile
bun run index.ts
env:
DEPLOY_WEBHOOK_URL: ${{ inputs.DEPLOY_WEBHOOK_URL }}
COMMIT_MESSAGE: ${{ inputs.COMMIT_MESSAGE }}
SERVICE_IMAGE: ${{ inputs.SERVICE_IMAGE }}
EXTRA_HEADERS: ${{ inputs.EXTRA_HEADERS }}