Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement: allow sync to be done from filesystem instead of Git repo #6

Closed
SamTheisens opened this issue Apr 5, 2019 · 2 comments

Comments

@SamTheisens
Copy link
Contributor

For our CI/CD setup, the possibility to dump and sync to and from the local filesystem would simplify matters quite a bit.
In our CI environment (Jenkins), we tend to check out a feature branch and build and deploy to our test environments from there. Then, once the code has been merged to master, we deploy to acceptance and production from there. In all scenarios the local filesystem contains the Tyk API definitions that we want to deploy.

A cli argument for the sync command with the path to the source files on disk instead of a git repository would simplify this tool and make it VCS agnostic.

@asoorm
Copy link
Member

asoorm commented Apr 15, 2019

A git repo can be on your local filesystem and doesn't necessarily need to be remotely hosted github/bitbucket/gitlab.

@asoorm
Copy link
Member

asoorm commented Apr 15, 2019

initialise local git repo

mkdir ~/foo && cd ~/foo
git init

General Workflow:

tyk-git dump -d http://dev.dashboard:3000 -s $DEV_DASH_KEY
git add .
git commit -m "my first commit"
tyk-git sync -d http://prod.dashboard:3000 -o $ORG_ID -s $PROD_DASH_KEY ~/foo/.git -b refs/heads/master

@buger buger closed this as completed in 9cb850a May 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants