forked from canonical/cloud-init
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
53 lines (47 loc) · 1.42 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
43
44
45
46
47
48
49
50
51
52
53
name: Docker Deploy Action
description: >
🪂 A Github Action to deploy pages
branding:
icon: 'command'
color: 'yellow'
inputs:
docker_hub_username:
description: Username for Docker Hub
default: ${{ github.actor }}
required: false
docker_hub_password:
description: Docker Hub password
required: true
docker_hub_token:
description: Docker Hub authentication token
required: true
credentials:
description: The Google cloud credentials
required: true
token:
description: The Github personal token
required: true
runs:
using: composite
steps:
- name: Initial action
if: runner.os == 'Linux'
uses: eq19/eq19/.github/actions/1-ubuntu/1-maps/1-init@main
with:
actor: ${{ github.actor }}
token: ${{ inputs.token }}
- name: Build action
if: runner.os == 'Linux'
uses: eq19/eq19/.github/actions/1-ubuntu/1-maps/2-build@main
with:
hub_username: ${{ inputs.docker_hub_username }}
hub_password: ${{ inputs.docker_hub_password }}
hub_token: ${{ inputs.docker_hub_token }}
action_path: ${{ github.action_path}}
- name: Force to update property
if: runner.os == 'Windows'
uses: eq19/eq19/.github/actions/2-windows/1-maps/1-init@main
with:
token: ${{ inputs.token }}
hub_username: ${{ inputs.docker_hub_username }}
hub_token: ${{ inputs.docker_hub_token }}