From ca0a6248a958d82b603362f1d483415738cdf950 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Gonz=C3=A1lez?= Date: Mon, 18 Mar 2024 10:43:16 -0600 Subject: [PATCH] try outputs --- .github/workflows/deploy.yaml | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 6b6cc14..574503c 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -15,18 +15,19 @@ env: FORCE_COLOR: 1 jobs: - infra: - name: Infrastructure + terraform-apply: + name: Terraform Apply runs-on: ubuntu-22.04 permissions: contents: read env: - TF_CLOUD_ORGANIZATION: 'rhyek' - TF_API_TOKEN: '${{ secrets.TF_API_TOKEN }}' + TF_CLOUD_ORGANIZATION: rhyek + TF_API_TOKEN: ${{ secrets.TF_API_TOKEN }} TF_WORKSPACE: 'bank-bots-dev' CONFIG_DIRECTORY: './infra' steps: - - uses: actions/checkout@v3 + - name: Checkout + uses: actions/checkout@v3 - name: Upload Configuration uses: hashicorp/tfc-workflows-github/actions/upload-configuration@v1.0.0 @@ -55,3 +56,22 @@ jobs: # aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} # aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} # aws-region: ${{ vars.AWS_DEFAULT_REGION }} + + - uses: dnsbty/get-terraform-outputs-action@v1.1 + with: + api-token: ${{ secrets.TF_API_TOKEN }} + workspace-id: ${{ env.TF_WORKSPACE }} + outputs: | + ecr_repository_scrape_txs_url + + # - name: Outputs + # uses: hashicorp/tfc-workflows-github/actions/workspace-output@v1.0.0 + # id: outputs + # with: + # workspace: ${{ env.TF_WORKSPACE }} + # deploy-scrape-txs: + # name: Deploy Scrape Bank Transactions + # runs-on: ubuntu-22.04 + # steps: + # - name: Checkout + # uses: actions/checkout@v3