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.
|
|
|
#
|
|
|
|
# Author: Hari Sekhon
|
|
|
|
# Date: 2020-03-21 11:06:48 +0000 (Sat, 21 Mar 2020)
|
|
|
|
#
|
|
|
|
# vim:ts=2:sts=2:sw=2: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
|
|
|
|
#
|
|
|
|
|
|
|
|
resources:
|
|
|
|
- name: github
|
|
|
|
icon: github-circle
|
|
|
|
type: git
|
|
|
|
source:
|
|
|
|
uri: https://github.com/harisekhon/devops-bash-tools
|
|
|
|
branch: master
|
|
|
|
#- name: daily
|
|
|
|
# type: time
|
|
|
|
# source:
|
|
|
|
# interval: 1d
|
|
|
|
|
|
|
|
# https://concourse-ci.org/golang-library-example.html
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
- name: build
|
|
|
|
public: false
|
|
|
|
plan:
|
|
|
|
- get: github # from resource above
|
|
|
|
trigger: true
|
|
|
|
#version: every # build every git commit, default: latest
|
|
|
|
- task: build
|
|
|
|
config:
|
|
|
|
platform: linux
|
|
|
|
image_resource:
|
|
|
|
type: docker-image
|
|
|
|
source:
|
|
|
|
repository: ubuntu
|
|
|
|
tag: latest
|
|
|
|
inputs:
|
|
|
|
- name: github
|
|
|
|
path: code
|
|
|
|
params:
|
|
|
|
CONCOURSE: 1
|
|
|
|
run:
|
|
|
|
path: /bin/bash
|
|
|
|
args:
|
|
|
|
- -c
|
|
|
|
- |
|
|
|
|
cd code &&
|
|
|
|
apt update -q &&
|
|
|
|
apt install -qy git make &&
|
|
|
|
make init &&
|
|
|
|
make ci test
|