Compare commits
No commits in common. "b518fd1263048fc523bfafea4443733f959adaad" and "c0d27e13d7a7b9ccd2c7e3050d5a55a02fd02eb0" have entirely different histories.
b518fd1263
...
c0d27e13d7
4 changed files with 18 additions and 34 deletions
|
@ -3,17 +3,17 @@ git fetch --all;
|
||||||
|
|
||||||
#copy dev to history to ensure we don't lose changes if something goes wrong
|
#copy dev to history to ensure we don't lose changes if something goes wrong
|
||||||
git checkout history;
|
git checkout history;
|
||||||
git reset --hard qual;
|
git reset --hard dev;
|
||||||
git push --force;
|
git push --force;
|
||||||
|
|
||||||
#merge to master
|
#merge to master
|
||||||
git checkout -B prod origin/master;
|
git checkout -B master origin/master;
|
||||||
git merge --squash qual;
|
git merge --squash dev;
|
||||||
git commit -am "$cm";
|
git commit -am "$cm";
|
||||||
git push;
|
git push;
|
||||||
|
|
||||||
#clean dev
|
#clean dev
|
||||||
git checkout qual;
|
git checkout dev;
|
||||||
git reset --hard prod;
|
git reset --hard master;
|
||||||
git push --force;
|
git push --force;
|
||||||
git reset --hard origin/qual;
|
git reset --hard origin/dev;
|
|
@ -6,13 +6,19 @@ branches:
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|
||||||
git:
|
git:
|
||||||
{%- for branch in branches %}
|
salt:
|
||||||
salt_{{branch}}:
|
|
||||||
repo: "ssh://gitea@git.actcur.com:5022/actcur/salt.git"
|
repo: "ssh://gitea@git.actcur.com:5022/actcur/salt.git"
|
||||||
path: "/srv/salt/{{branch}}"
|
path: "/srv/salt/prod"
|
||||||
branch: "{{branch}}"
|
branch: "master"
|
||||||
key: "git_actcur"
|
key: "git_actcur"
|
||||||
force: {{ "True" if branch == "prod" else "false" }}
|
force: true
|
||||||
|
email: "actcur@actcur.com"
|
||||||
|
name: "Actaeus Curabitur"
|
||||||
|
salt_dev:
|
||||||
|
repo: "ssh://gitea@git.actcur.com:5022/actcur/salt.git"
|
||||||
|
path: "/srv/salt/dev"
|
||||||
|
branch: "dev"
|
||||||
|
key: "git_actcur"
|
||||||
|
force: true
|
||||||
email: "actcur@actcur.com"
|
email: "actcur@actcur.com"
|
||||||
name: "Actaeus Curabitur"
|
name: "Actaeus Curabitur"
|
||||||
{%- endfor %}
|
|
||||||
|
|
18
states/test
18
states/test
|
@ -1,18 +0,0 @@
|
||||||
{%- set branches=salt.cmd.shell('git ls-remote https://git.actcur.com/actcur/salt.git | grep -o -P "(?<=refs/heads/).*" | grep -Pv "(^temp$)|(^history$)"').split('\n') -%}
|
|
||||||
branches:
|
|
||||||
saltmaster:
|
|
||||||
{%- for branch in branches %}
|
|
||||||
- {{branch}}
|
|
||||||
{%- endfor %}
|
|
||||||
|
|
||||||
git:
|
|
||||||
{%- for branch in branches %}
|
|
||||||
salt_{{branch}}:
|
|
||||||
repo: "ssh://gitea@git.actcur.com:5022/actcur/salt.git"
|
|
||||||
path: "/srv/salt/{{branch}}"
|
|
||||||
branch: "{{branch}}"
|
|
||||||
key: "git_actcur"
|
|
||||||
force: {{ "True" if branch == "prod" else "false" }}
|
|
||||||
email: "actcur@actcur.com"
|
|
||||||
name: "Actaeus Curabitur"
|
|
||||||
{%- endfor %}
|
|
|
@ -1,4 +0,0 @@
|
||||||
/test:
|
|
||||||
file.managed:
|
|
||||||
- source: salt://test
|
|
||||||
- template: jinja
|
|
Loading…
Add table
Reference in a new issue