Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
Silvija Tovernic committed Sep 27, 2024
1 parent 25c7080 commit 534ec4a
Showing 1 changed file with 36 additions and 44 deletions.
80 changes: 36 additions & 44 deletions .github/workflows/pulumi_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 534ec4a

Please sign in to comment.