Skip to content

Commit

Permalink
Only plan
Browse files Browse the repository at this point in the history
  • Loading branch information
barroco committed Dec 4, 2023
1 parent d4c3d36 commit b19315a
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 2 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/dss-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
on:
workflow_dispatch: {}
jobs:
deploy:
name: Deploy DSS to AWS
runs-on: ubuntu-latest
if: github.repository == 'interuss/dss' || github.repository == 'Orbitalize/dss'
concurrency:
group: dss-deploy-aws
cancel-in-progress: false
permissions:
id-token: write
contents: read
steps:
- name: Job information
run: |
echo "Job information"
echo "Trigger: ${{ github.event_name }}"
echo "Host: ${{ runner.os }}"
echo "Repository: ${{ github.repository }}"
echo "Branch: ${{ github.ref }}"
docker images
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::301042233698:role/InterUSSGithubCI
aws-region: us-east-1
mask-aws-account-id: true
role-duration-seconds: 1800

- name: Caller id
run: |
aws sts get-caller-identity
- name: Test Scenario AWS-1
with:
working-directory: ./deploy/operations/
env:
COMPOSE_PROFILES: aws-1
run: docker-compose up -d
4 changes: 2 additions & 2 deletions deploy/operations/ci/aws-1/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ else
fi
cd "${BASEDIR}" || exit 1


clean () {
echo "Cleaning infrastructure"
terraform destroy -auto-approve
}

clean
terraform init
terraform apply -auto-approve
terraform plan
#terraform apply -auto-approve
clean

0 comments on commit b19315a

Please sign in to comment.