Hi All, I am trying to setup github actions with ...
# general
m
Hi All, I am trying to setup github actions with Pulumi and Azure. When running the pulumi cli locally, I defined --config-file=pulumi.dev.json to define my input data. Reading through the docs I don't see a way to do this when setting up the GHA call: - name: Setup Pulmi uses: pulumi/actions@v3 with: command: up stack-name: ${{ env.STACK }} work-dir: ${{ env.DIRECTORY }} config-file: pulumi.dev.json env: PULUMI_ACCESS_TOKEN: ${{ env.ACCESS_TOKEN }} Am I missing something or is this not an option currently?
b
The
config-file
parameter is not supported currently AFAIK, see #716. The config-map parameter can be used instead [0] [1].
m
I ended up solving it this way: - name: Setup Pulmi uses: pulumi/actions@v4 env: PULUMI_ACCESS_TOKEN: ${{ env.ACCESS_TOKEN }} - run: pulumi preview --config-file=pulumi.dev.json --stack=<stack> --non-interactive -C ${{ env.DIRECTORY }} - run: pulumi up --config-file=pulumi.dev.json --stack=<stack> --non-interactive -C ${{ env.DIRECTORY }} -y