Skip to content

Commit

Permalink
Deploy to AWS now stopped
Browse files Browse the repository at this point in the history
  • Loading branch information
ksobitov committed Mar 24, 2024
1 parent 3ccbfe3 commit 9dbd9cc
Showing 1 changed file with 44 additions and 44 deletions.
88 changes: 44 additions & 44 deletions .github/workflows/deploy-aws.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
name: AWS ELB Deploy
on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:

- name: Checkout source code
uses: actions/checkout@v2

- name: Generate deployment package
run: zip -r multi-docker.zip . -x '*.git*'

- name: Get timestamp
uses: gerred/actions/current-time@master
id: current-time

- name: Run string replace
uses: frabert/replace-string-action@master
id: format-time
with:
pattern: '[:\.]+'
string: "${{ steps.current-time.outputs.time }}"
replace-with: '-'
flags: 'g'

- name: Deploy to EB
uses: einaregilsson/beanstalk-deploy@v20
with:
aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
application_name: multi-docker
environment_name: Multi-docker-env
version_label: "multi-docker-${{ steps.format-time.outputs.replaced }}"
region: us-east-1
deployment_package: multi-docker.zip

- name: Deployed
run: echo "App Deployed to ELB"
# name: AWS ELB Deploy
# on:
# push:
# branches:
# - main

# jobs:
# build:
# runs-on: ubuntu-latest

# steps:

# - name: Checkout source code
# uses: actions/checkout@v2

# - name: Generate deployment package
# run: zip -r multi-docker.zip . -x '*.git*'

# - name: Get timestamp
# uses: gerred/actions/current-time@master
# id: current-time

# - name: Run string replace
# uses: frabert/replace-string-action@master
# id: format-time
# with:
# pattern: '[:\.]+'
# string: "${{ steps.current-time.outputs.time }}"
# replace-with: '-'
# flags: 'g'

# - name: Deploy to EB
# uses: einaregilsson/beanstalk-deploy@v20
# with:
# aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }}
# aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# application_name: multi-docker
# environment_name: Multi-docker-env
# version_label: "multi-docker-${{ steps.format-time.outputs.replaced }}"
# region: us-east-1
# deployment_package: multi-docker.zip

# - name: Deployed
# run: echo "App Deployed to ELB"

0 comments on commit 9dbd9cc

Please sign in to comment.