Added deploy to AWS in build job
Some checks failed
AWS Deploy on Push / build (push) Failing after 1m23s
Some checks failed
AWS Deploy on Push / build (push) Failing after 1m23s
This commit is contained in:
@@ -13,7 +13,7 @@ jobs:
|
|||||||
- run: echo "The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
- run: echo "The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
||||||
- run: echo "The ${{ gitea.repository }} repository has been cloned to the runner."
|
- run: echo "The ${{ gitea.repository }} repository has been cloned to the runner."
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Set up Python 3.9
|
- name: Set up Python 3.12
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: "3.12"
|
python-version: "3.12"
|
||||||
@@ -21,4 +21,18 @@ jobs:
|
|||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "22.15"
|
node-version: "22.15"
|
||||||
|
- name: Install Python dependencies and CDK
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
# install your Python dependencies here
|
||||||
|
npm install -g aws-cdk
|
||||||
|
- name: Configure AWS credentials
|
||||||
|
uses: aws-actions/configure-aws-credentials@master
|
||||||
|
with:
|
||||||
|
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
|
||||||
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }}
|
||||||
|
aws-region: "us-east-2"
|
||||||
|
- name: Deploy to AWS
|
||||||
|
run: cdk deploy --app="python3 ${PWD}/app.py" --require-approval=never
|
||||||
|
|
||||||
- run: echo "This job's status is ${{ job.status }}."
|
- run: echo "This job's status is ${{ job.status }}."
|
||||||
Reference in New Issue
Block a user