Error: The Octopus instance URL is required, please specify explicitly through the ‘server’ input or set the OCTOPUS_URL environment variable.
this is the error we are currently getting when we build anything in github. I have updated everything for v3 and that fixed the first error but even though we created a github secret to store the octopus url it still isn’t building.
Thanks for reaching out to Octopus Support, and I’m sorry you’re experiencing issues with your GitHub Action.
Which of the Octopus actions are you seeing this error in? Would you be willing to share the YAML from your workflow with us? We may spot something by comparing it against our known working workflows. If you are ok sharing that, I can send you a secure upload link you can use.
I look forward to hearing back, and please let me know if you have any questions.
Thanks for following up and providing that information. I’ll jump in for Dan for the time being, as he’s currently offline in our US-based team.
You may be right that pointing to the space ID might be the cause - could you try pointing to the space name instead?
Looking at your screenshot you uploaded, the server is configured as ${{ env.OCTO_URL }} whereas your original message mentions OCTOPUS_URL environment variable. Could that be the cause, or just a typo?
That’s the one, that should work, assuming your create-release step is hitting the same GitHub Runner. Sorry for the potentially dumb question, but they’re not by chance set to use different machines are they?
If you’d like you can send me your entire YAML in a DM for me to take a look.
I’ve never tried to use octo commands outside of the official Octopus steps. Can I ask if there’s any reason why you are calling the octo create-release in a script step rather than using our step?
I’m thinking it might come down to how the Install Octopus CLI step drops octo in place and later steps call it. It might not be as simple as calling octo without anything extra.
Just to confirm, do you mean the update in the version of one of the steps in the GHA pipeline? Going up a major version on the GHA steps typically have significant changes so that’s a possibility. Which step did you upgrade and from what version?
I decided to start over since my changes were getting a little confusing so I’m reowrking it right now and I reverted back to the origin version. Would you suggest i jump from v1 to v3 or something else?
Once I try updating the version again I’ll see if I get any new errors because right now it’s gone back to this warning:
Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions/checkout@v2, OctopusDeploy/install-octopus-cli-action@v1.1.8, OctopusDeploy/push-build-information-action@v1.0.1.