-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathaction.yml
42 lines (41 loc) · 1.09 KB
/
action.yml
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
# action.yml
name: 'Migrate database'
author: 'Vladimir Pavlov'
description: 'Database seed tool built with golang-migrate'
inputs:
path:
description: 'Location of the migration files'
required: true
default: './migrations'
database:
description: 'Run migrations against this database (ex: postgres://postgres:postgres@postgres:5432/database?sslmode=disable)'
required: true
command:
description: 'Command to run'
default: 'up'
prefetch:
description: 'Number of migrations to load in advance before executing (default 10)'
default: '10'
lockTimeout:
description: 'Allow N seconds to acquire database lock (default 15)'
default: '15'
verbose:
description: 'Print verbose logging'
default: ''
version:
description: 'Print version'
default: ''
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.path }}
- ${{ inputs.database }}
- ${{ inputs.prefetch }}
- ${{ inputs.lockTimeout }}
- ${{ inputs.verbose }}
- ${{ inputs.version }}
- ${{ inputs.command }}
branding:
icon: 'database'
color: 'blue'