sist2/.drone.yml
2021-06-13 09:26:27 -04:00

73 lines
1.5 KiB
YAML

kind: pipeline
type: docker
name: amd64
platform:
os: linux
arch: amd64
steps:
- name: build
image: simon987/sist2-build
commands:
- ./ci/build.sh
- name: docker
image: plugins/docker
settings:
username:
from_secret: DOCKER_USER
password:
from_secret: DOCKER_PASSWORD
repo: simon987/sist2
context: ./
dockerfile: ./Dockerfile
auto_tag: true
auto_tag_suffix: x64-linux
when:
event:
- tag
- name: scp files
image: appleboy/drone-scp
settings:
host:
from_secret: SSH_HOST
port:
from_secret: SSH_PORT
user:
from_secret: SSH_USER
key:
from_secret: SSH_KEY
target: /files/sist2/${DRONE_REPO_OWNER}_${DRONE_REPO_NAME}/${DRONE_BRANCH}_${DRONE_BUILD_NUMBER}_${DRONE_COMMIT}/
source:
- ./VERSION
- ./sist2-x64-linux
- ./sist2-x64-linux-debug
#---
#kind: pipeline
#type: docker
#name: arm64
#
#platform:
# arch: arm64
#
#steps:
# - name: build
# image: simon987/ubuntu_ci_arm
# commands:
# - ./ci/build_arm64.sh
# - name: scp files
# image: appleboy/drone-scp
# settings:
# host:
# from_secret: SSH_HOST
# port:
# from_secret: SSH_PORT
# user:
# from_secret: SSH_USER
# key:
# from_secret: SSH_KEY
# target: /files/sist2/${DRONE_REPO_OWNER}_${DRONE_REPO_NAME}/arm_${DRONE_BRANCH}_${DRONE_BUILD_NUMBER}_${DRONE_COMMIT}/
# source:
# - ./sist2-arm64-linux