diff --git a/.github/workflows/launch_infrastructure.yaml b/.github/workflows/launch_infrastructure.yaml index 333fd9058..ef1705ff7 100644 --- a/.github/workflows/launch_infrastructure.yaml +++ b/.github/workflows/launch_infrastructure.yaml @@ -100,12 +100,6 @@ jobs: aws-region: ${{ secrets.AWS_REGION }} - name: Install Flox uses: flox/install-flox-action@v2 - - name: Initialize Pulumi stack - uses: flox/activate-action@v1 - env: - PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }} - with: - command: cd infrastructure && pulumi stack select production --create - name: Deploy with Pulumi uses: flox/activate-action@v1 env: diff --git a/maskfile.md b/maskfile.md index 0fb810082..0ef511e7e 100644 --- a/maskfile.md +++ b/maskfile.md @@ -110,7 +110,16 @@ cd infrastructure/ echo "Launching infrastructure" -pulumi up --diff --yes --stack production +organization_name=$(pulumi whoami) + +if [ -z "${organization_name}" ]; then + echo "Unable to determine Pulumi organization name - ensure you are logged in" + exit 1 +fi + +pulumi stack select ${organization_name}/pocketsizefund/production --create + +pulumi up --diff --yes echo "Forcing ECS service deployments to pull latest images"