File build.specials.obscpio of Package dapper
07070100000000000081a400000000000000000000000167a5f31000001b96000000000000000000000000000000000000000b00000000.drone.yml---
kind: pipeline
type: docker
name: build
platform:
os: linux
arch: amd64
steps:
- name: dapper
image: registry.suse.com/bci/golang:1.17
privileged: true
commands:
- go build -mod vendor -o dapper
volumes:
- name: socket
path: /var/run/docker.sock
when:
event:
- pull_request
- push
- tag
- name: cross-platform
image: docker:20.10
privileged: true
environment:
CROSS: 1
VERSION: ${DRONE_TAG}
commands:
- ./dapper ci
volumes:
- name: socket
path: /var/run/docker.sock
when:
event:
- pull_request
- push
- tag
- name: github_binary_release
image: plugins/github-release
settings:
api_key:
from_secret: github_token
files:
- "dist/artifacts/*"
when:
instance:
- drone-publish.rancher.io
ref:
- refs/head/master
- refs/tags/*
event:
- tag
- name: upload-tag
pull: default
image: plugins/gcs
settings:
acl:
- allUsers:READER
cache_control: "no-cache,must-revalidate"
source: ./dist/artifacts
target: releases.rancher.com/dapper/${DRONE_TAG}
token:
from_secret: google_auth_key
when:
event:
- tag
- name: upload-latest
pull: default
image: plugins/gcs
settings:
acl:
- allUsers:READER
cache_control: "no-cache,must-revalidate"
source: ./dist/artifacts
target: releases.rancher.com/dapper/latest
token:
from_secret: google_auth_key
when:
event:
- tag
volumes:
- name: socket
host:
path: /var/run/docker.sock
trigger:
event:
exclude:
- promote
---
kind: pipeline
type: docker
name: package-amd64
platform:
os: linux
arch: amd64
steps:
- name: docker
image: plugins/docker
settings:
build_args:
- "VERSION=${DRONE_TAG}"
- "RELEASES=releases.rancher.com"
context: package/
custom_dns: 1.1.1.1
dockerfile: package/Dockerfile
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: rancher/dapper
tag: "${DRONE_TAG}-linux-amd64"
volumes:
- name: docker
path: /var/run/docker.sock
when:
event:
- tag
volumes:
- name: docker
host:
path: /var/run/docker.sock
depends_on:
- build
---
kind: pipeline
type: docker
name: package-arm
platform:
os: linux
arch: arm
steps:
- name: docker
image: plugins/docker
settings:
build_args:
- "VERSION=${DRONE_TAG}"
- "RELEASES=releases.rancher.com"
context: package/
custom_dns: 1.1.1.1
dockerfile: package/Dockerfile
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: rancher/dapper
tag: "${DRONE_TAG}-linux-arm"
volumes:
- name: docker
path: /var/run/docker.sock
when:
event:
- tag
volumes:
- name: docker
host:
path: /var/run/docker.sock
depends_on:
- build
---
kind: pipeline
type: docker
name: package-arm64
platform:
os: linux
arch: arm64
steps:
- name: docker
image: plugins/docker
settings:
build_args:
- "VERSION=${DRONE_TAG}"
- "RELEASES=releases.rancher.com"
context: package/
custom_dns: 1.1.1.1
dockerfile: package/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: rancher/dapper
tag: "${DRONE_TAG}-linux-arm64"
volumes:
- name: docker
path: /var/run/docker.sock
when:
event:
- tag
volumes:
- name: docker
host:
path: /var/run/docker.sock
depends_on:
- build
---
kind: pipeline
type: docker
name: package-s390x
platform:
os: linux
arch: amd64
node:
arch: s390x
# TODO: change rancher/drone-images:docker-s390x after merging https://github.com/drone-plugins/drone-docker/pull/329
steps:
- name: docker
image: rancher/drone-images:docker-s390x
settings:
build_args:
- "VERSION=${DRONE_TAG}"
- "RELEASES=releases.rancher.com"
context: package/
custom_dns: 1.1.1.1
dockerfile: package/Dockerfile.s390x
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: rancher/dapper
tag: "${DRONE_TAG}-linux-s390x"
volumes:
- name: docker
path: /var/run/docker.sock
when:
event:
- tag
volumes:
- name: docker
host:
path: /var/run/docker.sock
depends_on:
- build
---
kind: pipeline
type: docker
name: package-windows-1809
platform:
os: windows
arch: amd64
version: 1809
steps:
- name: docker
image: plugins/docker
settings:
build_args:
- SERVERCORE_VERSION=1809
- "VERSION=${DRONE_TAG}"
- "RELEASES=releases.rancher.com"
context: package/
custom_dns: 1.1.1.1
dockerfile: package/Dockerfile.windows
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: rancher/dapper
tag: "${DRONE_TAG}-windows-amd64-1809"
volumes:
- name: docker
path: \\\\.\\pipe\\docker_engine
when:
event:
- tag
volumes:
- name: docker
host:
path: \\\\.\\pipe\\docker_engine
depends_on:
- build
---
kind: pipeline
type: docker
name: package-windows-ltsc2022
platform:
os: windows
arch: amd64
version: 2022
# remove this and use upstream images when https://github.com/drone/drone-git/pull/25 is merged
clone:
disable: true
steps:
- name: clone
image: rancher/drone-images:git-amd64-ltsc2022
- name: docker
image: rancher/drone-images:docker-amd64-ltsc2022
settings:
build_args:
- SERVERCORE_VERSION=ltsc2022
- "VERSION=${DRONE_TAG}"
- "RELEASES=releases.rancher.com"
context: package/
custom_dns: 1.1.1.1
dockerfile: package/Dockerfile.windows
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: rancher/dapper
tag: "${DRONE_TAG}-windows-amd64-ltsc2022"
volumes:
- name: docker
path: \\\\.\\pipe\\docker_engine
when:
event:
- tag
volumes:
- name: docker
host:
path: \\\\.\\pipe\\docker_engine
depends_on:
- build
---
kind: pipeline
type: docker
name: manifest
platform:
os: linux
arch: amd64
steps:
- name: push
image: ibuildthecloud/manifest:v1.2.3-patch1
settings:
password:
from_secret: docker_password
username:
from_secret: docker_username
spec: manifest.tmpl
when:
branch:
- master
event:
- tag
depends_on:
- build
- package-amd64
- package-arm
- package-arm64
- package-s390x
- package-windows-1809
- package-windows-ltsc2022
07070100000001000081a400000000000000000000000167a5f31000000035000000000000000000000000000000000000000b00000000.gitignore/dist
/bin
*.swp
.dapper
.dapper.exe
/.idea
/.vagrant07070100000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000b00000000TRAILER!!!