From 571c33b72baaf105a85c11af8d25a2f1f73895fd Mon Sep 17 00:00:00 2001 From: Okesanya Odunayo <94924061+DrInTech22@users.noreply.github.com> Date: Mon, 16 Dec 2024 02:59:11 +0100 Subject: [PATCH 1/2] CI: fix public ip step --- .github/workflows/ansible-monitoring.yml | 1 - .github/workflows/terraform-apply.yml | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ansible-monitoring.yml b/.github/workflows/ansible-monitoring.yml index 365b890..ded899f 100644 --- a/.github/workflows/ansible-monitoring.yml +++ b/.github/workflows/ansible-monitoring.yml @@ -10,7 +10,6 @@ jobs: - name: Checkout uses: actions/checkout@v3 with: - ref: infra_features - name: Get Workflow Run ID id: get-run-id diff --git a/.github/workflows/terraform-apply.yml b/.github/workflows/terraform-apply.yml index 62895cb..db2f626 100644 --- a/.github/workflows/terraform-apply.yml +++ b/.github/workflows/terraform-apply.yml @@ -78,7 +78,8 @@ jobs: - name: Save Public IP if: steps.terraform-operation.outcome == 'success' && github.event.inputs.operation != 'destroy' run: | - terraform output instance_public_ip > public_ip_env.txt + PUBLIC_IP=$(terraform output -raw instance_public_ip) + echo "$PUBLIC_IP" > public_ip_env.txt cat public_ip_env.txt working-directory: ./terraform From 648eefcf947cb924399288957f8c11cae2aec449 Mon Sep 17 00:00:00 2001 From: Okesanya Odunayo <94924061+DrInTech22@users.noreply.github.com> Date: Mon, 16 Dec 2024 03:02:32 +0100 Subject: [PATCH 2/2] fix: quick fix on typo --- .github/workflows/ansible-monitoring.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ansible-monitoring.yml b/.github/workflows/ansible-monitoring.yml index ded899f..e2ffb2d 100644 --- a/.github/workflows/ansible-monitoring.yml +++ b/.github/workflows/ansible-monitoring.yml @@ -9,7 +9,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - with: - name: Get Workflow Run ID id: get-run-id