Hi Friends, I have a console app that runs fine wi...
# dotnet
d
Hi Friends, I have a console app that runs fine with pulumi automation api and creates all the resources in AWS. However, when i try to integrate this app in CI/CD with github Action; I get this weird error which Im having a hard time understanding, Any ideas? . (workflow steps in thread) -
Copy code
Run docker run dockertest:dev
  docker run dockertest:dev
  shell: /usr/bin/bash -e {0}
  env:
    PULUMI_ACCESS_TOKEN: ***
    AWS_ACCESS_KEY_ID: ***
    AWS_SECRET_ACCESS_KEY: ***
Hello Pulumi World!
Unhandled exception. System.ComponentModel.Win32Exception (2): No such file or directory
   at System.Diagnostics.Process.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at CliWrap.Utils.ProcessEx.Start() in /home/runner/work/CliWrap/CliWrap/CliWrap/Utils/ProcessEx.cs:line 65
   at CliWrap.Command.ExecuteAsync(ProcessEx process, CancellationToken cancellationToken) in /home/runner/work/CliWrap/CliWrap/CliWrap/Command.cs:line 373
   at Pulumi.Automation.Commands.LocalPulumiCmd.RunAsyncInner(IList`1 args, String workingDir, IDictionary`2 additionalEnv, Action`1 onStandardOutput, Action`1 onStandardError, EventLogFile eventLogFile, CancellationToken cancellationToken)
   at Pulumi.Automation.Commands.LocalPulumiCmd.RunAsync(IList`1 args, String workingDir, IDictionary`2 additionalEnv, Action`1 onStandardOutput, Action`1 onStandardError, Action`1 onEngineEvent, CancellationToken cancellationToken)
   at Pulumi.Automation.LocalWorkspace.PopulatePulumiVersionAsync(CancellationToken cancellationToken)
   at Pulumi.Automation.LocalWorkspace.CreateStackHelperAsync(InlineProgramArgs args, Func`4 initFunc, CancellationToken cancellationToken)
Copy code
runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Install Latest Pulumi CLI
        uses: pulumi/action-install-pulumi-cli@v1.0.1
        with:
          pulumi-version: 3.24.1
      - name: Build
        run: docker build . --file Dockerfile --tag dockertest:dev
      - name: RunDocker
        run: docker run dockertest:dev
        env:
          PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
          AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
          AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
e
Your installing the pulumi cli into your actions agent, but it probably isn't install into your docker container.
d
aah.. so just for reference, I had to set the PATH manually in docker. thank you -your comment made me look in this direction