0

Is there a simple way to simulate Azure DevOps Replace Token task in GitLab CI/CD?

I have the following secret (with many others) in appsettings.Testing.json that I need to replace in deploy stage:

  "ConnectionStrings": {
    "RabbitMq": "amqp://dev-test:#{RabbitPassword}#@TST.local/dev-test"
  },

#{ ... }# is the default one for Azure DevOps Replace Token task. I don't need to use the same but can't figure out how to do it. In my CI/CD variable I already added RabbitPassword for all environments.

Tried other suggested template like ${RabbitPassword} but it's not working. What am i missing?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.