forked from EPFL-ENAC/epfl-enac-deploy-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
43 lines (42 loc) · 1.72 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
---
name: "EPFL ENAC-IT4R Build Publish and Deploy"
description: >
This action builds, publishes and deploys an application to the EPFL-ENAC
IT4R platform, which is a Kubernetes cluster. It is a composite action that
uses the docker/metadata-action, docker/build-push-action and a custom
curl-based deployment action. using a github dispatch event.
inputs:
# CD_URI: https://api.github.com/repos/EPFL-ENAC/enack8s-app-config/dispatches
ENAC_IT4R_CD_ORG:
description: >
App deployment org: examples are epfl-enac, epfl-lasur, epfl-resslab
required: true
ENAC_IT4R_CD_REPO:
description: >
Deployment app repo: examples are resslab-astra-82001-frontend, which corresponds
to the frontend of the Astra 82001 project in the resslab org situated
in the EPFL-ENAC/enack8s-app-config/epfl-resslab/resslab-astra-82001-frontend
required: true
ENAC_IT4R_CD_TOKEN:
description: >
App deployment secret given by the IT4R team [email protected]
required: true
ENAC_IT4R_CD_BUILD_CONTEXT:
description: >
The context of the build, e.g. a list of directory paths to include
in the build where the Dockerfile is located, for instances:
["./backend", "./admin", "./frontend"], default is ["./"]
cf readme.md for more information
required: false
default: '["./"]'
runs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Call deploy.yml
uses: EPFL-ENAC/epfl-enac-build-push-deploy-action/.github/workflows/deploy.yml@main
with:
org: ${{ inputs.ENAC_IT4R_CD_ORG }}
repo: ${{ inputs.ENAC_IT4R_CD_REPO }}
build_context: ${{ inputs.ENAC_IT4R_CD_BUILD_CONTEXT }}
token: ${{ inputs.ENAC_IT4R_CD_TOKEN }}