From b19315a155fdaaec4bb48c8597f0e7c2c15c169e Mon Sep 17 00:00:00 2001 From: Michael Barroco Date: Mon, 4 Dec 2023 14:38:14 -0500 Subject: [PATCH] Only plan --- .github/workflows/dss-deploy.yml | 46 ++++++++++++++++++++++++++++++ deploy/operations/ci/aws-1/test.sh | 4 +-- 2 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/dss-deploy.yml diff --git a/.github/workflows/dss-deploy.yml b/.github/workflows/dss-deploy.yml new file mode 100644 index 000000000..1468fa4fd --- /dev/null +++ b/.github/workflows/dss-deploy.yml @@ -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 \ No newline at end of file diff --git a/deploy/operations/ci/aws-1/test.sh b/deploy/operations/ci/aws-1/test.sh index 40b6fadbb..ece8e05f6 100755 --- a/deploy/operations/ci/aws-1/test.sh +++ b/deploy/operations/ci/aws-1/test.sh @@ -12,7 +12,6 @@ else fi cd "${BASEDIR}" || exit 1 - clean () { echo "Cleaning infrastructure" terraform destroy -auto-approve @@ -20,6 +19,7 @@ clean () { clean terraform init -terraform apply -auto-approve +terraform plan +#terraform apply -auto-approve clean