Timers and other features for Heroes of the Storm
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

33 lines
567 B

  1. kind: pipeline
  2. type: ssh
  3. name: push
  4. server:
  5. host:
  6. from_secret: ssh_host
  7. user:
  8. from_secret: ssh_user
  9. ssh_key:
  10. from_secret: ssh_key
  11. steps:
  12. - name: Stop and destroy old container
  13. failure: ignore
  14. commands:
  15. - docker ps -a | grep nexus-timers | awk '{system ("docker stop " $1); system ("docker rm " $1)}'
  16. - name: Build new image
  17. commands:
  18. - git checkout test
  19. - docker build . -f Dockerfile.production --tag="nexus-timers"
  20. - name: Launch new container
  21. commands:
  22. - docker run -p 7000:80 -d nexus-timers
  23. trigger:
  24. branch:
  25. - test