mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-25 22:30:42 +00:00
cleanup drone config
This commit is contained in:
parent
02a6c3a40b
commit
bc5e50318e
@ -1,7 +1,6 @@
|
|||||||
local PythonVersion(pyversion="2.7") = {
|
local PythonVersion(pyversion="2.7") = {
|
||||||
name: "python" + std.strReplace(pyversion, '.', '') + "-ansible",
|
name: "python" + std.strReplace(pyversion, '.', '') + "-ansible",
|
||||||
image: "python:" + pyversion,
|
image: "python:" + pyversion,
|
||||||
pull: "always",
|
|
||||||
environment: {
|
environment: {
|
||||||
PY_COLORS: 1
|
PY_COLORS: 1
|
||||||
},
|
},
|
||||||
@ -25,7 +24,6 @@ local PipelineLint = {
|
|||||||
{
|
{
|
||||||
name: "flake8",
|
name: "flake8",
|
||||||
image: "python:3.7",
|
image: "python:3.7",
|
||||||
pull: "always",
|
|
||||||
environment: {
|
environment: {
|
||||||
PY_COLORS: 1
|
PY_COLORS: 1
|
||||||
},
|
},
|
||||||
@ -57,7 +55,6 @@ local PipelineTest = {
|
|||||||
{
|
{
|
||||||
name: "codecov",
|
name: "codecov",
|
||||||
image: "python:3.7",
|
image: "python:3.7",
|
||||||
pull: "always",
|
|
||||||
environment: {
|
environment: {
|
||||||
PY_COLORS: 1,
|
PY_COLORS: 1,
|
||||||
CODECOV_TOKEN: { "from_secret": "codecov_token" },
|
CODECOV_TOKEN: { "from_secret": "codecov_token" },
|
||||||
@ -95,7 +92,6 @@ local PipelineSecurity = {
|
|||||||
{
|
{
|
||||||
name: "bandit",
|
name: "bandit",
|
||||||
image: "python:3.7",
|
image: "python:3.7",
|
||||||
pull: "always",
|
|
||||||
environment: {
|
environment: {
|
||||||
PY_COLORS: 1
|
PY_COLORS: 1
|
||||||
},
|
},
|
||||||
@ -125,7 +121,6 @@ local PipelineBuildPackage = {
|
|||||||
{
|
{
|
||||||
name: "build",
|
name: "build",
|
||||||
image: "python:3.7",
|
image: "python:3.7",
|
||||||
pull: "always",
|
|
||||||
commands: [
|
commands: [
|
||||||
"python setup.py sdist bdist_wheel",
|
"python setup.py sdist bdist_wheel",
|
||||||
]
|
]
|
||||||
@ -133,7 +128,6 @@ local PipelineBuildPackage = {
|
|||||||
{
|
{
|
||||||
name: "checksum",
|
name: "checksum",
|
||||||
image: "alpine",
|
image: "alpine",
|
||||||
pull: "always",
|
|
||||||
commands: [
|
commands: [
|
||||||
"cd dist/ && sha256sum * > ../sha256sum.txt"
|
"cd dist/ && sha256sum * > ../sha256sum.txt"
|
||||||
],
|
],
|
||||||
@ -141,7 +135,6 @@ local PipelineBuildPackage = {
|
|||||||
{
|
{
|
||||||
name: "publish-github",
|
name: "publish-github",
|
||||||
image: "plugins/github-release",
|
image: "plugins/github-release",
|
||||||
pull: "always",
|
|
||||||
settings: {
|
settings: {
|
||||||
overwrite: true,
|
overwrite: true,
|
||||||
api_key: { "from_secret": "github_token"},
|
api_key: { "from_secret": "github_token"},
|
||||||
@ -156,7 +149,6 @@ local PipelineBuildPackage = {
|
|||||||
{
|
{
|
||||||
name: "publish-pypi",
|
name: "publish-pypi",
|
||||||
image: "plugins/pypi",
|
image: "plugins/pypi",
|
||||||
pull: "always",
|
|
||||||
settings: {
|
settings: {
|
||||||
username: { "from_secret": "pypi_username" },
|
username: { "from_secret": "pypi_username" },
|
||||||
password: { "from_secret": "pypi_password" },
|
password: { "from_secret": "pypi_password" },
|
||||||
@ -187,7 +179,6 @@ local PipelineBuildContainer(arch="amd64") = {
|
|||||||
{
|
{
|
||||||
name: "build",
|
name: "build",
|
||||||
image: "python:3.7",
|
image: "python:3.7",
|
||||||
pull: "always",
|
|
||||||
commands: [
|
commands: [
|
||||||
"python setup.py bdist_wheel",
|
"python setup.py bdist_wheel",
|
||||||
]
|
]
|
||||||
@ -195,7 +186,6 @@ local PipelineBuildContainer(arch="amd64") = {
|
|||||||
{
|
{
|
||||||
name: "dryrun",
|
name: "dryrun",
|
||||||
image: "plugins/docker:18-linux-" + arch,
|
image: "plugins/docker:18-linux-" + arch,
|
||||||
pull: "always",
|
|
||||||
settings: {
|
settings: {
|
||||||
dry_run: true,
|
dry_run: true,
|
||||||
dockerfile: "Dockerfile",
|
dockerfile: "Dockerfile",
|
||||||
@ -210,7 +200,6 @@ local PipelineBuildContainer(arch="amd64") = {
|
|||||||
{
|
{
|
||||||
name: "publish",
|
name: "publish",
|
||||||
image: "plugins/docker:18-linux-" + arch,
|
image: "plugins/docker:18-linux-" + arch,
|
||||||
pull: "always",
|
|
||||||
settings: {
|
settings: {
|
||||||
auto_tag: true,
|
auto_tag: true,
|
||||||
auto_tag_suffix: arch,
|
auto_tag_suffix: arch,
|
||||||
@ -320,7 +309,6 @@ local PipelineNotifications = {
|
|||||||
{
|
{
|
||||||
image: "plugins/manifest",
|
image: "plugins/manifest",
|
||||||
name: "manifest",
|
name: "manifest",
|
||||||
pull: "always",
|
|
||||||
settings: {
|
settings: {
|
||||||
ignore_missing: true,
|
ignore_missing: true,
|
||||||
auto_tag: true,
|
auto_tag: true,
|
||||||
@ -328,36 +316,22 @@ local PipelineNotifications = {
|
|||||||
password: { from_secret: "docker_password" },
|
password: { from_secret: "docker_password" },
|
||||||
spec: "manifest.tmpl",
|
spec: "manifest.tmpl",
|
||||||
},
|
},
|
||||||
when: {
|
|
||||||
ref: [
|
|
||||||
'refs/heads/master',
|
|
||||||
'refs/tags/**',
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "readme",
|
name: "readme",
|
||||||
image: "sheogorath/readme-to-dockerhub",
|
image: "sheogorath/readme-to-dockerhub",
|
||||||
pull: "always",
|
|
||||||
environment: {
|
environment: {
|
||||||
DOCKERHUB_USERNAME: { from_secret: "docker_username" },
|
DOCKERHUB_USERNAME: { from_secret: "docker_username" },
|
||||||
DOCKERHUB_PASSWORD: { from_secret: "docker_password" },
|
DOCKERHUB_PASSWORD: { from_secret: "docker_password" },
|
||||||
DOCKERHUB_REPO_PREFIX: "xoxys",
|
DOCKERHUB_REPO_PREFIX: "xoxys",
|
||||||
DOCKERHUB_REPO_NAME: "ansible-later",
|
DOCKERHUB_REPO_NAME: "ansible-later",
|
||||||
README_PATH: "README.md",
|
README_PATH: "README.md",
|
||||||
SHORT_DESCRIPTION: "ansible-later - lovely automation testing framework"
|
SHORT_DESCRIPTION: "ansible-later - Lovely automation testing framework"
|
||||||
},
|
|
||||||
when: {
|
|
||||||
ref: [
|
|
||||||
'refs/heads/master',
|
|
||||||
'refs/tags/**',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "microbadger",
|
name: "microbadger",
|
||||||
image: "plugins/webhook",
|
image: "plugins/webhook",
|
||||||
pull: "always",
|
|
||||||
settings: {
|
settings: {
|
||||||
urls: { from_secret: "microbadger_url" },
|
urls: { from_secret: "microbadger_url" },
|
||||||
},
|
},
|
||||||
@ -372,9 +346,6 @@ local PipelineNotifications = {
|
|||||||
username: { "from_secret": "matrix_username" },
|
username: { "from_secret": "matrix_username" },
|
||||||
password: { "from_secret": "matrix_password" },
|
password: { "from_secret": "matrix_password" },
|
||||||
},
|
},
|
||||||
when: {
|
|
||||||
status: [ "success", "failure" ],
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
depends_on: [
|
depends_on: [
|
||||||
|
40
.drone.yml
40
.drone.yml
@ -8,7 +8,6 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: flake8
|
- name: flake8
|
||||||
pull: always
|
|
||||||
image: python:3.7
|
image: python:3.7
|
||||||
commands:
|
commands:
|
||||||
- pip install -r test-requirements.txt -qq
|
- pip install -r test-requirements.txt -qq
|
||||||
@ -33,7 +32,6 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: python27-ansible
|
- name: python27-ansible
|
||||||
pull: always
|
|
||||||
image: python:2.7
|
image: python:2.7
|
||||||
commands:
|
commands:
|
||||||
- pip install tox -qq
|
- pip install tox -qq
|
||||||
@ -44,7 +42,6 @@ steps:
|
|||||||
- clone
|
- clone
|
||||||
|
|
||||||
- name: python35-ansible
|
- name: python35-ansible
|
||||||
pull: always
|
|
||||||
image: python:3.5
|
image: python:3.5
|
||||||
commands:
|
commands:
|
||||||
- pip install tox -qq
|
- pip install tox -qq
|
||||||
@ -55,7 +52,6 @@ steps:
|
|||||||
- clone
|
- clone
|
||||||
|
|
||||||
- name: python36-ansible
|
- name: python36-ansible
|
||||||
pull: always
|
|
||||||
image: python:3.6
|
image: python:3.6
|
||||||
commands:
|
commands:
|
||||||
- pip install tox -qq
|
- pip install tox -qq
|
||||||
@ -66,7 +62,6 @@ steps:
|
|||||||
- clone
|
- clone
|
||||||
|
|
||||||
- name: python37-ansible
|
- name: python37-ansible
|
||||||
pull: always
|
|
||||||
image: python:3.7
|
image: python:3.7
|
||||||
commands:
|
commands:
|
||||||
- pip install tox -qq
|
- pip install tox -qq
|
||||||
@ -77,7 +72,6 @@ steps:
|
|||||||
- clone
|
- clone
|
||||||
|
|
||||||
- name: python38-rc-ansible
|
- name: python38-rc-ansible
|
||||||
pull: always
|
|
||||||
image: python:3.8-rc
|
image: python:3.8-rc
|
||||||
commands:
|
commands:
|
||||||
- pip install tox -qq
|
- pip install tox -qq
|
||||||
@ -88,7 +82,6 @@ steps:
|
|||||||
- clone
|
- clone
|
||||||
|
|
||||||
- name: codecov
|
- name: codecov
|
||||||
pull: always
|
|
||||||
image: python:3.7
|
image: python:3.7
|
||||||
commands:
|
commands:
|
||||||
- pip install codecov
|
- pip install codecov
|
||||||
@ -124,7 +117,6 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: bandit
|
- name: bandit
|
||||||
pull: always
|
|
||||||
image: python:3.7
|
image: python:3.7
|
||||||
commands:
|
commands:
|
||||||
- pip install -r test-requirements.txt -qq
|
- pip install -r test-requirements.txt -qq
|
||||||
@ -152,19 +144,16 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
pull: always
|
|
||||||
image: python:3.7
|
image: python:3.7
|
||||||
commands:
|
commands:
|
||||||
- python setup.py sdist bdist_wheel
|
- python setup.py sdist bdist_wheel
|
||||||
|
|
||||||
- name: checksum
|
- name: checksum
|
||||||
pull: always
|
|
||||||
image: alpine
|
image: alpine
|
||||||
commands:
|
commands:
|
||||||
- cd dist/ && sha256sum * > ../sha256sum.txt
|
- cd dist/ && sha256sum * > ../sha256sum.txt
|
||||||
|
|
||||||
- name: publish-github
|
- name: publish-github
|
||||||
pull: always
|
|
||||||
image: plugins/github-release
|
image: plugins/github-release
|
||||||
settings:
|
settings:
|
||||||
api_key:
|
api_key:
|
||||||
@ -180,7 +169,6 @@ steps:
|
|||||||
- refs/tags/**
|
- refs/tags/**
|
||||||
|
|
||||||
- name: publish-pypi
|
- name: publish-pypi
|
||||||
pull: always
|
|
||||||
image: plugins/pypi
|
image: plugins/pypi
|
||||||
settings:
|
settings:
|
||||||
password:
|
password:
|
||||||
@ -212,13 +200,11 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
pull: always
|
|
||||||
image: python:3.7
|
image: python:3.7
|
||||||
commands:
|
commands:
|
||||||
- python setup.py bdist_wheel
|
- python setup.py bdist_wheel
|
||||||
|
|
||||||
- name: dryrun
|
- name: dryrun
|
||||||
pull: always
|
|
||||||
image: plugins/docker:18-linux-amd64
|
image: plugins/docker:18-linux-amd64
|
||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
@ -233,7 +219,6 @@ steps:
|
|||||||
- refs/pull/**
|
- refs/pull/**
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
pull: always
|
|
||||||
image: plugins/docker:18-linux-amd64
|
image: plugins/docker:18-linux-amd64
|
||||||
settings:
|
settings:
|
||||||
auto_tag: true
|
auto_tag: true
|
||||||
@ -268,13 +253,11 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
pull: always
|
|
||||||
image: python:3.7
|
image: python:3.7
|
||||||
commands:
|
commands:
|
||||||
- python setup.py bdist_wheel
|
- python setup.py bdist_wheel
|
||||||
|
|
||||||
- name: dryrun
|
- name: dryrun
|
||||||
pull: always
|
|
||||||
image: plugins/docker:18-linux-arm64
|
image: plugins/docker:18-linux-arm64
|
||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
@ -289,7 +272,6 @@ steps:
|
|||||||
- refs/pull/**
|
- refs/pull/**
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
pull: always
|
|
||||||
image: plugins/docker:18-linux-arm64
|
image: plugins/docker:18-linux-arm64
|
||||||
settings:
|
settings:
|
||||||
auto_tag: true
|
auto_tag: true
|
||||||
@ -324,13 +306,11 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
pull: always
|
|
||||||
image: python:3.7
|
image: python:3.7
|
||||||
commands:
|
commands:
|
||||||
- python setup.py bdist_wheel
|
- python setup.py bdist_wheel
|
||||||
|
|
||||||
- name: dryrun
|
- name: dryrun
|
||||||
pull: always
|
|
||||||
image: plugins/docker:18-linux-arm
|
image: plugins/docker:18-linux-arm
|
||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
@ -345,7 +325,6 @@ steps:
|
|||||||
- refs/pull/**
|
- refs/pull/**
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
pull: always
|
|
||||||
image: plugins/docker:18-linux-arm
|
image: plugins/docker:18-linux-arm
|
||||||
settings:
|
settings:
|
||||||
auto_tag: true
|
auto_tag: true
|
||||||
@ -454,7 +433,6 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: manifest
|
- name: manifest
|
||||||
pull: always
|
|
||||||
image: plugins/manifest
|
image: plugins/manifest
|
||||||
settings:
|
settings:
|
||||||
auto_tag: true
|
auto_tag: true
|
||||||
@ -464,13 +442,8 @@ steps:
|
|||||||
spec: manifest.tmpl
|
spec: manifest.tmpl
|
||||||
username:
|
username:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
when:
|
|
||||||
ref:
|
|
||||||
- refs/heads/master
|
|
||||||
- refs/tags/**
|
|
||||||
|
|
||||||
- name: readme
|
- name: readme
|
||||||
pull: always
|
|
||||||
image: sheogorath/readme-to-dockerhub
|
image: sheogorath/readme-to-dockerhub
|
||||||
environment:
|
environment:
|
||||||
DOCKERHUB_PASSWORD:
|
DOCKERHUB_PASSWORD:
|
||||||
@ -480,14 +453,9 @@ steps:
|
|||||||
DOCKERHUB_USERNAME:
|
DOCKERHUB_USERNAME:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
README_PATH: README.md
|
README_PATH: README.md
|
||||||
SHORT_DESCRIPTION: ansible-later - lovely automation testing framework
|
SHORT_DESCRIPTION: ansible-later - Lovely automation testing framework
|
||||||
when:
|
|
||||||
ref:
|
|
||||||
- refs/heads/master
|
|
||||||
- refs/tags/**
|
|
||||||
|
|
||||||
- name: microbadger
|
- name: microbadger
|
||||||
pull: always
|
|
||||||
image: plugins/webhook
|
image: plugins/webhook
|
||||||
settings:
|
settings:
|
||||||
urls:
|
urls:
|
||||||
@ -505,10 +473,6 @@ steps:
|
|||||||
template: "Status: **{{ build.status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}<br/> Message: {{ build.message }}"
|
template: "Status: **{{ build.status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}<br/> Message: {{ build.message }}"
|
||||||
username:
|
username:
|
||||||
from_secret: matrix_username
|
from_secret: matrix_username
|
||||||
when:
|
|
||||||
status:
|
|
||||||
- success
|
|
||||||
- failure
|
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
ref:
|
ref:
|
||||||
@ -523,6 +487,6 @@ depends_on:
|
|||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 225363c3eddd299c7a3bdf2e54a2007e5ebc7e3881dd1aa0325e9f9ea7b2bc3b
|
hmac: df2c32e15c32636b0e817e9e2a2b3d53730cbb2fa3a1ff8adf13ba2401c73c2f
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user