Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
p0sX-server/.drone.yml
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
64 lines (58 sloc)
1.43 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pipeline: | |
| test: | |
| image: python:3.5.2 | |
| environment: | |
| - DJANGO_SETTINGS_MODULE=init_django.settings.dev | |
| commands: | |
| - pip install tox | |
| - make env | |
| - make dev | |
| - make flake8 | |
| - tox | |
| publish: | |
| image: plugins/docker | |
| repo: pkumar2-sps/p0sX-server | |
| docker: | |
| image: plugins/docker | |
| repo: registry.fap.no/p0sx/p0sx | |
| insecure: true | |
| tags: | |
| - master | |
| when: | |
| branch: master | |
| docker: | |
| image: plugins/docker | |
| repo: registry.fap.no/p0sx/p0sx | |
| insecure: true | |
| tags: | |
| - latest | |
| - $$TAG | |
| when: | |
| event: tag | |
| ssh: | |
| image: appleboy/drone-ssh | |
| host: | |
| - primeape.terra.fap.no | |
| user: root | |
| port: 22 | |
| command_timeout: 1000 | |
| script: | |
| - docker pull registry.fap.no/p0sx/p0sx:latest | |
| - docker-compose -f /srv/docker/p0sx/docker-compose.yml down p0sx-dev | |
| - docker-compose -f /srv/docker/p0sx/docker-compose.yml up -d p0sx-dev | |
| when: | |
| status: success | |
| branch: master | |
| slack: | |
| image: plugins/slack | |
| webhook: https://hooks.slack.com/services/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 | |
| channel: developers | |
| username: pkumar2 | |
| when: | |
| status: [ success, changed, failure ] | |
| template: | | |
| {{#success build.status}} | |
| build {{build.number}} succeeded. Good job. | |
| {{else}} | |
| build {{build.number}} {{build.link_url}} failed. Fix me please. | |
| {{/success}} | |