Skip to content

Commit

Permalink
fix show ip server
Browse files Browse the repository at this point in the history
  • Loading branch information
ER-Radi committed May 6, 2024
1 parent 9939726 commit 1ee884f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/terraform-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,14 @@ jobs:
#run: echo "server_public_ip={$(cd terraform; terraform output -raw server_public_ip)}" >> $GITHUB_OUTPUT
run: |
cd terraform
echo "::set-output name=server_public_ip::$(terraform output -raw server_public_ip)"
#echo "server_public_ip=$(terraform output -raw server_public_ip)" >> $GITHUB_OUTPUT
#echo "::set-output name=server_public_ip::$(terraform output -raw server_public_ip)"
echo "server_public_ip=$(terraform output -raw server_public_ip)" >> $GITHUB_OUTPUT
if: success()

- name: Show IP
run: echo "Public IP ${{steps.get_server_ip.outputs.server_public_ip}}"
run: |
echo "Public IP ${{steps.get_server_ip.outputs.server_public_ip}}"
echo "Public IP ${{steps.get_server_ip.outputs}}"
- name: Create .env file
env:
Expand Down Expand Up @@ -90,7 +92,7 @@ jobs:
shell: bash
#env:
# server: ${{ steps.get_server_ip.outputs.server_public_ip }}
if: success()
#if: success()

- name: Terraform Destroy
run: |
Expand Down

0 comments on commit 1ee884f

Please sign in to comment.