You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
935 B
YAML
38 lines
935 B
YAML
#
|
|
# Author: Hari Sekhon
|
|
# Date: 2020-02-24 17:43:07 +0000 (Mon, 24 Feb 2020)
|
|
#
|
|
# vim:ts=4:sts=4:sw=4:et
|
|
#
|
|
# https://github.com/harisekhon/bash-tools
|
|
#
|
|
# License: see accompanying Hari Sekhon LICENSE file
|
|
#
|
|
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish
|
|
#
|
|
# https://www.linkedin.com/in/harisekhon
|
|
#
|
|
|
|
version: "1.0"
|
|
stages:
|
|
- "checkout"
|
|
- "build"
|
|
steps:
|
|
checkout:
|
|
type: "git-clone"
|
|
description: "Cloning main repository..."
|
|
#repo: "HariSekhon/DevOps-Bash-tools"
|
|
repo: '${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}'
|
|
revision: "${{CF_REVISION}}"
|
|
stage: "checkout"
|
|
build:
|
|
title: Running docker image
|
|
type: freestyle
|
|
working_directory: '${{CF_REPO_NAME}}'
|
|
arguments:
|
|
image: 'ubuntu:18.04'
|
|
commands:
|
|
- apt update && apt install -y git make
|
|
- make
|
|
- make test
|