-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (45 loc) · 1.1 KB
/
deploy.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
43
44
45
46
47
48
name: Update Service
on:
workflow_dispatch:
inputs:
environment:
description: The environment to deploy to
type: environment
default: dev
required: true
image:
description: The full image
type: string
required: true
workflow_call:
inputs:
environment:
description: The environment to deploy to
required: true
type: string
image:
description: The full image
required: true
type: string
secrets:
DUPLO_TOKEN:
description: The Duplo API token
required: true
jobs:
update_service:
name: Update Service
runs-on: ubuntu-latest
environment:
name: ${{ inputs.environment }}
env:
DUPLO_TOKEN: ${{ secrets.DUPLO_TOKEN }}
DUPLO_HOST: ${{ vars.DUPLO_HOST }}
DUPLO_TENANT: ${{ vars.DUPLO_TENANT }}
steps:
- name: Duplo Setup
uses: duplocloud/actions/setup@main
- name: Update Service
uses: duplocloud/actions/update-service@main
with:
service: my-service
image: ${{ inputs.image }}