Skip to content

Commit

Permalink
add env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
gurevichdmitry committed Nov 7, 2024
1 parent 7f5245f commit 6610394
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/actions/cdr/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ runs:
- name: Deploy AWS Asset Inventory agent
if: ${{ !cancelled() && steps.asset-inventory-version-check.outputs.asset_inventory_supported == 'true' }}
working-directory: deploy/test-environments/cdr
shell: bash
shell: bash
env:
EC2_ASSET_INV_KEY: ${{ steps.generate-data.outputs.ec2-asset-inv-key }}
ASSET_INV_PUBLIC_IP: ${{ steps.generate-data.outputs.asset-inv-public-ip }}
Expand All @@ -282,7 +282,7 @@ runs:
id: upload-state-cdr
if: always()
working-directory: deploy/test-environments
shell: bash
shell: bash
env:
S3_BUCKET: ${{ inputs.env-s3-bucket }}
CLOUDTRAIL_KEY: ${{ steps.generate-data.outputs.aws-ec2-cloudtrail-key }}
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/elk-stack/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,4 @@ runs:
S3_BUCKET: ${{ inputs.env-s3-bucket }}
shell: bash
run: |
./manage_infrastructure.sh "elk-stack" "upload-state"
./manage_infrastructure.sh "elk-stack" "upload-state"
14 changes: 12 additions & 2 deletions .github/workflows/test-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,20 @@ jobs:
python3 ../../.ci/scripts/create_env_config.py
aws s3 cp "./env_config.json" "${S3_BUCKET}/env_config.json"
- name: Update Stack Vars
env:
STACK_ES_USER: ${{ steps.elk-stack.outputs.es-user }}
STACK_ES_PASSWORD: ${{ steps.elk-stack.outputs.es-password }}
STACK_KIBANA_URL: ${{ steps.elk-stack.outputs.kibana-url }}
STACK_ES_URL: ${{ steps.elk-stack.outputs.es-url }}
run: |
echo "ES_USER=$STACK_ES_USER" >> $GITHUB_ENV
echo "ES_PASSWORD=$STACK_ES_PASSWORD" >> $GITHUB_ENV
echo "KIBANA_URL=$STACK_KIBANA_URL" >> $GITHUB_ENV
echo "ES_URL=$STACK_ES_URL" >> $GITHUB_ENV
- name: Summary
if: success()
env:
KIBANA_URL: ${{ steps.elk-stack.outputs.kibana-url }}
run: |
summary="Kibana URL: $KIBANA_URL"
bucket_name="$S3_BASE_BUCKET"
Expand Down

0 comments on commit 6610394

Please sign in to comment.