Skip to content

Instantly share code, notes, and snippets.

@chiehpower
Last active May 15, 2022 08:24
Show Gist options
  • Save chiehpower/5cc77b3068e10d4aa02b1c13ad0f6d3d to your computer and use it in GitHub Desktop.
Save chiehpower/5cc77b3068e10d4aa02b1c13ad0f6d3d to your computer and use it in GitHub Desktop.
Drone yml file - Medium
global-variables:
debian_image: &debian_image ubuntu:latest
environment: &default_environment
server_ip: 10.1.2.102
kind: pipeline
type: docker
name: test
steps:
- name: test
image: *debian_image
environment:
<<: *default_environment
commands:
- pip3 install requests psycopg2
- sleep 5s
- echo "Start to test the login API."
- python3 Gitlab-CI/api_unit_test/login.py --serverip $${server_1_ip} --CI
when:
status: [ success, failure ]
branch:
- master
trigger:
branch:
- master
event:
- push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment