Skip to content

Deploy to AWS

Deploy to AWS #10

Workflow file for this run

name: Deploy to AWS
on:
workflow_dispatch:
inputs:
environment:
description: 'Environment to deploy: [dev, uat, prod]'
type: string
default: dev
required: true
build-repository-type:
description: 'Environment to deploy: [releases, snapshots]'
type: string
default: releases
required: true
build-version:
description: 'Build version to deploy. Example: python-app-1.0.1.zip'
type: string
required: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-1
- name: Download build from build repository
run: |
echo "Downloading build from build repository..."
echo $build-version
echo $build-repository-type
echo $build-version
aws s3 cp s3://vw-demo-730335502100-build-repository/$build-repository-type/$build-version $build-version
ls -ltrh