crane/.drone.yml
jblu bc325787a3
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
updated testing for ci
2023-06-27 11:59:19 -05:00

65 lines
1.3 KiB
YAML

kind: pipeline
name: default
steps:
- name: docker
image: plugins/docker
settings:
registry: git.jbranan.com
dry_run: false
username: jblu
password:
from_secret: gittea_drone
repo: git.jbranan.com/jblu/crane
tags:
- latest
when:
branch:
- main
- name: docker-test
image: plugins/docker
settings:
registry: git.jbranan.com
dry_run: false
username: jblu
password:
from_secret: gittea_drone
repo: git.jbranan.com/jblu/crane
tags:
- dev
when:
branch:
- dev*
- name: test-main
image: git.jbranan.com/jblu/crane:latest
environment:
CRANE_HOST:
from_secret: CRANE_HOST
CRANE_PORT:
from_secret: CRANE_PORT
CRANE_ENDPOINT:
from_secret: CRANE_ENDPOINT
commands:
- echo $CRANE_HOST
- echo $CRANE_PORT
- echo $CRANE_ENDPOINT
- python test_crane.py
when:
branch:
- main
- name: test-dev
image: git.jbranan.com/jblu/crane:dev
environment:
CRANE_HOST:
from_secret: CRANE_HOST
CRANE_PORT:
from_secret: CRANE_PORT
CRANE_ENDPOINT:
from_secret: CRANE_ENDPOINT
commands:
- echo $CRANE_HOST
- echo $CRANE_PORT
- echo $CRANE_ENDPOINT
- python test_crane.py
when:
branch:
- dev*