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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.