...
 
Commits (2)
......@@ -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
# hashworks.net source
[![coverage report](https://git.hashworks.net/hashworks/hashworksNET/badges/master/coverage.svg)](https://git.hashworks.net/hashworks/hashworksNET/commits/master) [![codecov](https://codecov.io/gh/hashworks/hashworksNET/branch/dev/graph/badge.svg)](https://codecov.io/gh/hashworks/hashworksNET)
[![pipeline status](https://git.hashworks.net/hashworks/hashworksNET/badges/master/pipeline.svg)](https://git.hashworks.net/hashworks/hashworksNET/commits/master) [![codecov](https://codecov.io/gh/hashworks/hashworksNET/branch/dev/graph/badge.svg)](https://codecov.io/gh/hashworks/hashworksNET)
Repository of [hashworks.net](https://hashworks.net).
......