45 lines
995 B
YAML
45 lines
995 B
YAML
kind: pipeline
|
|
name: default
|
|
|
|
steps:
|
|
- name: test
|
|
image: alpine
|
|
environment:
|
|
MYUSERNAME:
|
|
from_secret: myusername
|
|
commands:
|
|
- echo "echo secret"
|
|
- echo $${MYUSERNAME}
|
|
- echo "run env command"
|
|
- env
|
|
- echo $${MYUSERNAME} > /tmp/file
|
|
- mkdir -p /tmp/foo/dir
|
|
- touch /tmp/foo/dir/test.txt
|
|
|
|
- name: publish
|
|
image: plugins/docker
|
|
settings:
|
|
repo: ruanbekker/dronetest
|
|
auto_tag: false
|
|
auto_tag_suffix: alpine
|
|
tags:
|
|
- ${DRONE_COMMIT}
|
|
- latest
|
|
username:
|
|
from_secret: dockerhub_username
|
|
password:
|
|
from_secret: dockerhub_password
|
|
|
|
- name: upload
|
|
image: plugins/s3
|
|
settings:
|
|
bucket: dump
|
|
source: public/**/*
|
|
target: /target/location
|
|
path_style: true
|
|
access_key:
|
|
from_secret: minio_access_key
|
|
secret_key:
|
|
from_secret: minio_secret_key
|
|
endpoint:
|
|
from_secret: minio_host
|