qulogic/talkatu

The build number needs to be exposed to the plans that *BUILD* the packages...
environment:
- PACKAGECLOUD_REPO=experimental
- ARCH=amd64
- BUILD_NUMBER
tasks:
import:
type: docker/import
files: .:.
clean:
type: convey/clean
files:
- debian-buster-amd64
- fedora-28-amd64
- scanbuild
build:
type: docker/run
image: talkatu/builders:${DISTRO}-${VERSION}-${ARCH}
export:
type: docker/export
files: ${DISTRO}-${VERSION}-${ARCH}
scanbuild:
type: docker/run
image: talkatu/builders:scanbuild
scanbuild-export:
type: docker/export
files: scanbuild
package-cloud:
type: docker/run
image: rwgrim/package_cloud:latest
environment:
- PACKAGECLOUD_TOKEN
command: push --yes --verbose pidgin/${PACKAGECLOUD_REPO}/${DISTRO}/${VERSION} ${PATTERN}
workdir: ${CONVEY_WORKSPACE}/${DISTRO}-${VERSION}-${ARCH}
publish-deb:
type: convey/extend
task: package-cloud
environment:
- PATTERN=debs/*.deb
publish-debsrc:
type: convey/extend
task: package-cloud
environment:
- PATTERN=debs/*.dsc
publish-rpm:
type: convey/extend
task: package-cloud
environment:
- PATTERN=x86_64/*.rpm
import-artifacts:
type: docker/import
files:
- ${DISTRO}-${VERSION}-${ARCH}
plans:
debian:
environment:
- DISTRO=debian
- VERSION=buster
stages:
- tasks:
- import
- build
- export
fedora:
environment:
- DISTRO=fedora
- VERSION=28
stages:
- tasks: [import, build, export]
scanbuild:
environment:
- DISTRO=debian
- VERSION=scanbuild
stages:
- tasks: [import, scanbuild, scanbuild-export]
publish:
stages:
- name: publish-debian
environment:
- DISTRO=debian
- VERSION=buster
tasks:
- import-artifacts
- publish-deb
- publish-debsrc
- name: publish-fedora
environment:
- DISTRO=fedora
- VERSION=28
tasks:
- import-artifacts
- publish-rpm
clean:
stages:
- tasks: clean
meta-plans:
default:
plans:
- scanbuild
- debian
- fedora