https://pulumi.com logo
#general
Title
# general
m

most-pager-38056

11/30/2018, 8:52 PM
Hi! I’m trying to use Github Actions to deploy stack changes automatically, but the action is failing without any message:
### STARTED Pulumi Deploy (Current Stack) 204029Z
(pulling, digest, status, etc…)
### FAILED Pulumi Deploy (Current Stack) 204030Z (97ms)
I can run
pulumi update/preview
locally and i’ve setup my
.pulumi/ci.json
and the workflow secrets correctly, so i’m not sure how to debug this. ☹️
Just for reference, i followed this tutorial: https://pulumi.io/reference/cd-github-actions.html
l

lemon-spoon-91807

11/30/2018, 10:38 PM
in the etc... part, is there any error message at all?
m

most-pager-38056

11/30/2018, 10:39 PM
Nope, everything looks fine
It fails in 5 seconds without any message at all 🤔
l

lemon-spoon-91807

11/30/2018, 10:40 PM
er...
we do have a --debug flag that can include a torrent of information
Just spitballing if that might be able to reveal like one final line that shows some failure info
b

big-piano-35669

11/30/2018, 10:44 PM
Looking, am going to try to repro locally, just a few mins.
💜 1
m

most-pager-38056

11/30/2018, 10:45 PM
I’ve tried to add
--debug
flag in
args
, but the i don’t receive any debug/error message too. 🤔
b

big-piano-35669

11/30/2018, 11:04 PM
Alright, I was able to repro, and I think I've figured it out. I believe GitHub must have deprecated some old syntax.
m

most-pager-38056

11/30/2018, 11:06 PM
Hm, that makes sense now. 🙂
b

big-piano-35669

11/30/2018, 11:06 PM
There are two issues: 1) GitHub deprecated the
@tag
syntax for Docker images, apparently replaced by
:tag
(makes sense, as it's consistent with Docker tag syntax generally) 2) Our docs are still using the old
pulumi/actions
Docker image. That still technically works, but we've begun publishing newer images underneath
pulumi/pulumi
. So, in a nutshell, everywhere the workflow file says
uses = "<docker://pulumi/actions@v0.16.0>"
it should instead say `uses = "docker://pulumi/pulumi" Or, alternatively a specific version if you want to pin, e.g.
uses = "<docker://pulumi/pulumi:v0.16.2>"
I am working to verify this works and, assuming it does, will update our docs. Sorry for the hassles -- we didn't catch this because we generally don't pin to specific versions and let it float to
latest
automatically.
m

most-pager-38056

11/30/2018, 11:11 PM
Great, i’m going to update our repository to use it! One question: the source code from
pulumi/pulumi
lives in the same repository of
pulumi/actions
? I was working on a PR to add AWS IAM Authenticator to the Docker image, so we can use AWS EKS.
b

big-piano-35669

11/30/2018, 11:21 PM
Actually, my mistake, there are still differences in the
pulumi/pulumi
and
pulumi/actions
images (namely, the presence of GitHub actions tags and cloud-specific SDKs). I love the idea of a PR for AWS IAM Authenticator, so pulumi/actions is the right place to add that. I'm rebuilding and publishing a newer image now based on our latest v0.16.6 SDK, and will have a PR out for the docs repo momentarily to get rid of the legacy syntax.
P. S. we have work next sprint to tidy up our Docker publishing situation tracked by https://github.com/pulumi/pulumi/issues/1991
m

most-pager-38056

11/30/2018, 11:30 PM
Yes, seems like have different Docker images for
pulumi/pulumi
and
pulumi/actions
is a better ideia. In the future,
pulumi/actions
can have additional features, like posting a comment in case of conflicts, preview errors, common mistakes, etc. I’ve just updated our actions to use the new
:
syntax instead
@
and now it’s working properly, thank you! 😅 I’m working on the PR right now 🙂
b

big-piano-35669

12/01/2018, 12:48 AM
Great!
Btw, docs website is now fixed and up to date.
m

most-pager-38056

12/01/2018, 12:51 AM
Great, thank you! I’ve just created the PR, it was pretty simple 😂: https://github.com/pulumi/actions/pull/1
3 Views