mirror of
https://github.com/t2linux/T2-Ubuntu.git
synced 2024-09-11 04:46:16 +03:00
50 lines
1009 B
YAML
50 lines
1009 B
YAML
---
|
|
language: bash
|
|
|
|
os:
|
|
- linux
|
|
|
|
services:
|
|
- docker
|
|
|
|
# branches:
|
|
# only:
|
|
# - master
|
|
|
|
stages:
|
|
- test
|
|
- build_deploy
|
|
|
|
jobs:
|
|
include:
|
|
- stage: test
|
|
name: "YamlLint"
|
|
script: |
|
|
docker run --rm -v $(pwd):/repo -it alpine:latest /bin/sh -c '
|
|
cd /repo
|
|
apk add --no-cache python3 py-pip
|
|
pip install yamllint
|
|
yamllint .
|
|
'
|
|
- stage: test
|
|
name: "ShellCheck"
|
|
script: |
|
|
docker run --rm -v $(pwd):/repo -it alpine:latest /bin/sh -c '
|
|
cd /repo
|
|
apk add --no-cache shellcheck bash
|
|
shellcheck ./*.sh
|
|
shellcheck ./files/*.sh
|
|
'
|
|
- stage: build_deploy
|
|
name: "Build Ubuntu and Deploy to GitHub Releases"
|
|
script: ./build_in_docker.sh
|
|
deploy:
|
|
provider: releases
|
|
api_key: "$GITHUB_TOKEN"
|
|
file_glob: true
|
|
file: "output/*"
|
|
skip_cleanup: true
|
|
# yamllint disable-line rule:truthy
|
|
on:
|
|
tags: true
|