language: bash

before_deploy:
  - docker pull ajnasz/hook-deploy

deploy:
  - provider: script
    script: docker run --rm -v /etc/ssl/certs:/etc/ssl/certs:ro -e SERVER_URL="https://scm.koszti.hu" -e HOOK_JOB="scrum-poker" -e HOOK_TOKEN="$HOOK_TOKEN" -e CI_COMMIT_SHA="$TRAVIS_COMMIT" ajnasz/hook-deploy
    on:
      branch: master
      tag: true
  - provider: script
    script: docker run --rm -v /etc/ssl/certs:/etc/ssl/certs:ro -e SERVER_URL="https://scm.koszti.hu" -e HOOK_JOB="scrum-poker-test" -e HOOK_TOKEN="$HOOK_TOKEN" -e CI_COMMIT_SHA="$TRAVIS_COMMIT" ajnasz/hook-deploy
    on:
      branch: test/travis.yml

language: bash

before_deploy:
  - docker pull ajnasz/hook-deploy

deploy:
  - provider: script
    script: docker run --rm -v /etc/ssl/certs:/etc/ssl/certs:ro -e SERVER_URL="https://scm.koszti.hu" -e HOOK_JOB="scrum-poker" -e HOOK_TOKEN="$HOOK_TOKEN" -e CI_COMMIT_SHA="$TRAVIS_COMMIT" ajnasz/hook-deploy
    on:
      tag: true

  - provider: script
    script: docker run --rm -v /etc/ssl/certs:/etc/ssl/certs:ro -e SERVER_URL="https://scm.koszti.hu" -e HOOK_JOB="scrum-poker-test" -e HOOK_TOKEN="$HOOK_TOKEN" -e CI_COMMIT_SHA="$TRAVIS_COMMIT" ajnasz/hook-deploy
    on:
      branch: test/travis.yml

Fix run job deploy job on tagging
Fix run job deploy job on tagging
