-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
49 lines (46 loc) · 1.76 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
name: "Deploy Beanstalk application"
author: "Marcel Arns <[email protected]>"
description: "Create Beanstalk application version and update environment"
inputs:
application_name:
required: true
description: "Name of the beanstalk application"
docker_compose_path:
required: false
description: "Path to docker-compose.yml"
default: "${{ github.workspace }}/docker/docker-compose.yml"
environment_name:
required: true
description: "Beanstalk environment name"
platform_hooks_path:
required: false
description: "Path to hooks directory, which can contain .ebextensions and/or .platform folder"
version_label:
required: false
description: "Version label (default: github.sha)"
default: ${{ github.sha }}
version_description:
required: false
description: "Version description (default: github.run_number)"
default: "GitHub Action #${{ github.run_number }}"
runs:
using: "composite"
steps:
- uses: moneymeets/action-setup-python-poetry@master
with:
working_directory: ${{ github.action_path }}
with_checks: 'false'
# ToDo: Re-enable cache when https://github.com/actions/setup-python/issues/361 is fixed
poetry_cache_enabled: 'false'
- run: poetry run python action.py
shell: bash
working-directory: ${{ github.action_path }}
env:
AWS_DEFAULT_REGION: eu-central-1
APPLICATION_NAME: ${{ inputs.application_name }}
DOCKER_COMPOSE_PATH: ${{ inputs.docker_compose_path }}
ENVIRONMENT_NAME: ${{ inputs.environment_name }}
PLATFORM_HOOKS_PATH: ${{ inputs.platform_hooks_path }}
VERSION_DESCRIPTION: ${{ inputs.version_description }}
VERSION_LABEL: ${{ inputs.version_label }}
PYTHONUNBUFFERED: "1"