Skip to content

Commit fa4b613

Browse files
author
brice burgess
committed
Support container environment overrides
1 parent 444d28a commit fa4b613

File tree

5 files changed

+6170
-6119
lines changed

5 files changed

+6170
-6119
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@ This action is great for executing migrations or other pre/post deployment steps
3838
override-container-command: |
3939
/bin/sh
4040
-c
41-
php artisan migrate --force --ansi && \
42-
php artisan db:seed --force --ansi && \
43-
php artisan config:clear --ansi
41+
php artisan migrate --force --ansi && php artisan db:seed --force --ansi
42+
override-container-environment: |
43+
AWS_REGION=us-east-1
44+
FOO=baz
4445
```
4546
4647
#### Minimal example

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ inputs:
4040
description: >-
4141
The command to run on the container if `override-container` is passed.
4242
required: false
43+
override-container-environment:
44+
description: >-
45+
Add or override existing environment variables if `override-container` is passed. Provide one per line in key=value format.
46+
required: false
4347
tail-logs:
4448
description: >-
4549
If set to true, will try to extract the logConfiguration for the first container in the task definition. If

0 commit comments

Comments
 (0)