mirror of
https://github.com/yeslayla/zappa-deploy-action.git
synced 2025-01-13 12:33:42 +01:00
Debugging...
Debugging... Debugging... Debugging... Debugging... Debugging... Debugging...
This commit is contained in:
parent
ba88fd00a7
commit
5ff6a5fc69
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
.venv
|
||||
pythonenv*
|
@ -8,9 +8,9 @@ LABEL "com.github.actions.color"="blue"
|
||||
LABEL repository="https://github.com/josephbmanley/zappa-deploy-action"
|
||||
LABEL maintainer="Joseph Manley <joseph@cloudsumu.com>"
|
||||
|
||||
RUN yum install python3 -y
|
||||
RUN yum install python3 python3-pip -y
|
||||
|
||||
RUN pip install zappa
|
||||
RUN pip3 install virtualenv
|
||||
|
||||
ADD entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
@ -4,12 +4,21 @@ set -e
|
||||
# Move to project directory
|
||||
cd $1
|
||||
|
||||
# Config AWS profile
|
||||
mkdir -p ~/.aws
|
||||
echo "[default]" > ~/.aws/config
|
||||
echo "region=${AWS_DEFAULT_REGION:-'us-east-1'}" >> ~/.aws/config
|
||||
|
||||
echo "[default]" > ~/.aws/credentials
|
||||
echo "aws_access_key_id=${AWS_ACCESS_KEY_ID}" >> ~/.aws/credentials
|
||||
echo "aws_secret_access_key=${AWS_SECRET_ACCESS_KEY}" >> ~/.aws/credentials
|
||||
|
||||
# Install virtual environment
|
||||
pip install virtualenv
|
||||
virtualenv .venv
|
||||
source ./.venv/bin/activate
|
||||
|
||||
# Install requirements
|
||||
pip install zappa
|
||||
pip install -r requirements.txt
|
||||
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user