From 534ec4abff4cbcebbab78d9d43b25eeb82a0222a Mon Sep 17 00:00:00 2001 From: Silvija Tovernic Date: Fri, 27 Sep 2024 14:18:39 +0200 Subject: [PATCH] revert --- .github/workflows/pulumi_preview.yml | 80 +++++++++++++--------------- 1 file changed, 36 insertions(+), 44 deletions(-) diff --git a/.github/workflows/pulumi_preview.yml b/.github/workflows/pulumi_preview.yml index e2a32b9..356c5b4 100644 --- a/.github/workflows/pulumi_preview.yml +++ b/.github/workflows/pulumi_preview.yml @@ -36,53 +36,45 @@ jobs: CONTAINER_PORT: "80" steps: - # - uses: actions/checkout@v2 + - uses: actions/checkout@v2 - ## Run script and mask access token - - name: Run Script - run: | - TEST_INPUT="${{ inputs.TEST_INPUT }}" - echo "::add-mask::$TEST_INPUT" - echo TEST_INPUT=$TEST_INPUT >> $GITHUB_ENV - echo $TEST_INPUT - - # - uses: actions/setup-python@v2 - # with: - # python-version: 3.12 + - uses: actions/setup-python@v2 + with: + python-version: 3.12 - # - name: Configure AWS Credentials - # uses: aws-actions/configure-aws-credentials@v1 - # with: - # aws-access-key-id: ${{ env.AWS_ACCESS_KEY_ID }} - # aws-region: ${{ env.AWS_REGION }} - # aws-secret-access-key: ${{ env.AWS_SECRET_ACCESS_KEY }} - # aws-session-token: ${{ env.AWS_SESSION_TOKEN }} + - name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v1 + with: + aws-access-key-id: ${{ env.AWS_ACCESS_KEY_ID }} + aws-region: ${{ env.AWS_REGION }} + aws-secret-access-key: ${{ env.AWS_SECRET_ACCESS_KEY }} + aws-session-token: ${{ env.AWS_SESSION_TOKEN }} - # - name: Install pulumi and login to S3 - # run: | - # pip install pulumi - # pulumi login s3://pulumi-lab-state2 + - name: Install pulumi and login to S3 + run: | + pip install pulumi + pulumi login s3://pulumi-lab-state2 - # - name: Setup pulumi stack and variables - # run: | - # pulumi stack select --create $GITHUB_ENVIRONMENT - # pulumi config set aws:region $AWS_REGION - # pulumi config set region $AWS_REGION - # pulumi config set az_number $AWS_AZ_NUMBER - # pulumi config set prefix $AWS_RESOURCE_PREFIX - # pulumi config set short_prefix $AWS_RESOURCE_SHORT_PREFIX - # pulumi config set image_uri $CONTAINER_IMAGE_URI - # pulumi config set cpu $CONTAINER_CPU - # pulumi config set memory $CONTAINER_MEMORY - # pulumi config set container_port $CONTAINER_PORT - # working-directory: pulumi + - name: Setup pulumi stack and variables + run: | + pulumi stack select --create $GITHUB_ENVIRONMENT + pulumi config set aws:region $AWS_REGION + pulumi config set region $AWS_REGION + pulumi config set az_number $AWS_AZ_NUMBER + pulumi config set prefix $AWS_RESOURCE_PREFIX + pulumi config set short_prefix $AWS_RESOURCE_SHORT_PREFIX + pulumi config set image_uri $CONTAINER_IMAGE_URI + pulumi config set cpu $CONTAINER_CPU + pulumi config set memory $CONTAINER_MEMORY + pulumi config set container_port $CONTAINER_PORT + working-directory: pulumi - # - name: Pulumi Preview - # run: | - # pulumi preview - # working-directory: pulumi + - name: Pulumi Preview + run: | + pulumi preview + working-directory: pulumi - # - name: Pulumi Preview Details - # run: | - # pulumi preview --json - # working-directory: pulumi + - name: Pulumi Preview Details + run: | + pulumi preview --json + working-directory: pulumi