Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×I am searchin for a Solution to say in The commit: deploy on staging and production or deploy just staging.
What i‘ve done so far: Setting up pipeline with two steps. One step for staging on for production.
Deployment working fine for now.
But now i want to deploy only on staging eccept i write something in the commit to say: on production too!
Hi Albert,
Could you provide an example of your yaml configuration.
If the second step, that deploys to production, is it a manual step?
If so there is currently no feature in pipelines to automatically kick off this manual step triggered conditionally based on the contents of a commit.
Kind Regards,
Nathan
Hi Nathan, thanks for answering.
If there's no switch between example: staging and production. How do i divide these both servers, base on the same GIT-Repo?
Here is my example:
image: samueldebruyn/debian-git
pipelines:
default:
- step:
caches:
- node
deployment: staging
script:
- apt-get update
- apt-get -qq install git-ftp
- git ftp push --user $FTP_USERNAME --passwd $FTP_PASSWORD ftp://staging.ja.do/
- step:
caches:
- node
deployment: production
script:
- apt-get update
- apt-get -qq install git-ftp
- git ftp push --user $FTP_USERNAMEPROD --passwd $FTP_PASSWORDPROD ftp://production.ja.do/
Thanks in advance, Albert
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register Now
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.