Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Fix AMI prod sync script (#678)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaiksaya authored Mar 5, 2021
1 parent 8f8e44f commit 383b937
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/prod-sync-ami.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ jobs:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Required Packages
run: ./release-tools/scripts/required_packages.sh

- name: Getting OD version
run: |
OD_VERSION=`./bin/version-info --od`
OD_VERSION=`./release-tools/scripts/version-info.sh --od`
echo "od_version=$OD_VERSION" >> $GITHUB_ENV
- name: Required Packages
run: ./release-tools/scripts/required_packages.sh
- name: Set AMI from private to public in all regions
Expand All @@ -26,7 +29,7 @@ jobs:
aws configure set aws_access_key_id ${{ secrets.AWS_EC2_ACCESS_KEY_ID }}
aws configure set aws_secret_access_key ${{ secrets.AWS_EC2_SECRET_ACCESS_KEY }}
aws configure set region us-east-1
aws configure set cli_pager ""
export AWS_PAGER=""

REGIONS_LIST=`aws ec2 describe-regions --query 'Regions[].RegionName[]' --output text`
for region_name in $REGIONS_LIST
Expand Down

0 comments on commit 383b937

Please sign in to comment.