Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
Fix GitlabCI Badge
· 7cdd7a3e
Justin Kromlinger
authored
Sep 12, 2019
7cdd7a3e
CI: Move ansible configuration to template
· f5883a02
Justin Kromlinger
authored
Sep 12, 2019
f5883a02
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
f5883a02
...
...
@@ -48,18 +48,24 @@ buildAndTest:
paths
:
-
.go
deploy
:
.ansible
:
# Template
stage
:
deploy
image
:
name
:
mullnerz/ansible-playbook:latest
entrypoint
:
[
"
"
]
script
:
variables
:
ANSIBLE_HOST_KEY_CHECKING
:
'
false'
before_script
:
-
echo "${ANSIBLE_SSH_KEY}" | base64 -d > ansible.key
-
ansible-playbook --private-key=ansible.key -i deployment/inventories/staging deployment/deploy.yml
only
:
-
master
-
tags
deploy
:
extends
:
.ansible
script
:
-
ansible-playbook --private-key=ansible.key -i deployment/inventories/staging deployment/deploy.yml
selenium
:
stage
:
acceptance
image
:
golang
...
...
@@ -81,15 +87,8 @@ selenium:
-
acceptionTest.png
restore
:
stage
:
restore
image
:
name
:
mullnerz/ansible-playbook:latest
entrypoint
:
[
"
"
]
extends
:
.ansible
script
:
-
test -f acceptionTest.html || exit
0
-
echo "${ANSIBLE_SSH_KEY}" | base64 --decode > ansible.key
-
ansible-playbook --private-key=ansible.key -i deployment/inventories/staging deployment/restore.yml
when
:
on_failure
only
:
-
master
-
tag
README.md
View file @
f5883a02
# hashworks.net source
[

](https://git.hashworks.net/hashworks/hashworksNET/commits/master)
[

](https://codecov.io/gh/hashworks/hashworksNET)
[

](https://git.hashworks.net/hashworks/hashworksNET/commits/master)
[

](https://codecov.io/gh/hashworks/hashworksNET)
Repository of
[
hashworks.net
](
https://hashworks.net
)
.
...
...