You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Drop the mapping from env to URLs
- Rearrange the package names from "promotion" it's about more than just that.
- Provide a mock cache implementation and test the promotion logic.
- Flesh out the README.md
- Allow providing the branch-name from the command-line.
Rework.
This is a pre-alpha PoC for promoting versions of files between environments, represented as repositories.
6
+
7
+
## Building
8
+
9
+
```shell
10
+
$ go build ./cmd/services
11
+
```
12
+
13
+
## Running
14
+
15
+
You'll need a GitHub token to test this out.
16
+
17
+
```shell
18
+
$ export GITHUB_TOKEN=<paste in GitHub access token>
19
+
$ ./services promote --from https://github.com/organisation/first-environment.git --to https://github.com/organisation/second-environment.git --service service-a --commit-name <User to commit as> --commit-email <Email to commit as>
20
+
```
21
+
22
+
If the `commit-name` and `commit-email` are not provided, it will attempt to find them in `~/.gitconfig`, otherwise it will fail.
23
+
24
+
This will _copy_ a single file `deployment.txt` from `service-a` in `first-environment` to `service-a` in `second-environment`, commit and push, and open a PR for the change.
0 commit comments