mirror of
https://github.com/thegeeklab/docker-tidy.git
synced 2024-11-22 20:20:42 +00:00
fetch git tags on each pipeline
This commit is contained in:
parent
795c3ae863
commit
979b4f17e5
@ -5,7 +5,7 @@ local PythonVersion(pyversion='3.5') = {
|
|||||||
PY_COLORS: 1,
|
PY_COLORS: 1,
|
||||||
},
|
},
|
||||||
commands: [
|
commands: [
|
||||||
'pip install poetry -qq',
|
'pip install poetry poetry-dynamic-versioning -qq',
|
||||||
'poetry install -q',
|
'poetry install -q',
|
||||||
'poetry run pytest dockertidy --cov=dockertidy --cov-append --no-cov-on-fail',
|
'poetry run pytest dockertidy --cov=dockertidy --cov-append --no-cov-on-fail',
|
||||||
'poetry version',
|
'poetry version',
|
||||||
@ -25,6 +25,13 @@ local PipelineLint = {
|
|||||||
arch: 'amd64',
|
arch: 'amd64',
|
||||||
},
|
},
|
||||||
steps: [
|
steps: [
|
||||||
|
{
|
||||||
|
name: 'fetch',
|
||||||
|
image: 'thegeeklab/alpine-tools',
|
||||||
|
commands: [
|
||||||
|
'git fetch --tags',
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'flake8',
|
name: 'flake8',
|
||||||
image: 'python:3.9',
|
image: 'python:3.9',
|
||||||
@ -32,7 +39,7 @@ local PipelineLint = {
|
|||||||
PY_COLORS: 1,
|
PY_COLORS: 1,
|
||||||
},
|
},
|
||||||
commands: [
|
commands: [
|
||||||
'pip install poetry -qq',
|
'pip install poetry poetry-dynamic-versioning -qq',
|
||||||
'poetry install -q',
|
'poetry install -q',
|
||||||
'poetry run flake8 ./dockertidy',
|
'poetry run flake8 ./dockertidy',
|
||||||
],
|
],
|
||||||
@ -92,6 +99,13 @@ local PipelineSecurity = {
|
|||||||
arch: 'amd64',
|
arch: 'amd64',
|
||||||
},
|
},
|
||||||
steps: [
|
steps: [
|
||||||
|
{
|
||||||
|
name: 'fetch',
|
||||||
|
image: 'thegeeklab/alpine-tools',
|
||||||
|
commands: [
|
||||||
|
'git fetch --tags',
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'bandit',
|
name: 'bandit',
|
||||||
image: 'python:3.9',
|
image: 'python:3.9',
|
||||||
@ -99,7 +113,7 @@ local PipelineSecurity = {
|
|||||||
PY_COLORS: 1,
|
PY_COLORS: 1,
|
||||||
},
|
},
|
||||||
commands: [
|
commands: [
|
||||||
'pip install poetry -qq',
|
'pip install poetry poetry-dynamic-versioning -qq',
|
||||||
'poetry install -q',
|
'poetry install -q',
|
||||||
'poetry run bandit -r ./dockertidy -x ./dockertidy/test',
|
'poetry run bandit -r ./dockertidy -x ./dockertidy/test',
|
||||||
],
|
],
|
||||||
@ -122,12 +136,18 @@ local PipelineBuildPackage = {
|
|||||||
arch: 'amd64',
|
arch: 'amd64',
|
||||||
},
|
},
|
||||||
steps: [
|
steps: [
|
||||||
|
{
|
||||||
|
name: 'fetch',
|
||||||
|
image: 'thegeeklab/alpine-tools',
|
||||||
|
commands: [
|
||||||
|
'git fetch --tags',
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'build',
|
name: 'build',
|
||||||
image: 'python:3.9',
|
image: 'python:3.9',
|
||||||
commands: [
|
commands: [
|
||||||
'pip install poetry poetry-dynamic-versioning -qq',
|
'pip install poetry poetry-dynamic-versioning -qq',
|
||||||
'pip list',
|
|
||||||
'poetry build',
|
'poetry build',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@ -185,6 +205,13 @@ local PipelineBuildContainer(arch='amd64') = {
|
|||||||
arch: arch,
|
arch: arch,
|
||||||
},
|
},
|
||||||
steps: [
|
steps: [
|
||||||
|
{
|
||||||
|
name: 'fetch',
|
||||||
|
image: 'thegeeklab/alpine-tools',
|
||||||
|
commands: [
|
||||||
|
'git fetch --tags',
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'build',
|
name: 'build',
|
||||||
image: 'python:3.9',
|
image: 'python:3.9',
|
||||||
@ -265,6 +292,13 @@ local PipelineDocs = {
|
|||||||
limit: 1,
|
limit: 1,
|
||||||
},
|
},
|
||||||
steps: [
|
steps: [
|
||||||
|
{
|
||||||
|
name: 'fetch',
|
||||||
|
image: 'thegeeklab/alpine-tools',
|
||||||
|
commands: [
|
||||||
|
'git fetch --tags',
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'assets',
|
name: 'assets',
|
||||||
image: 'thegeeklab/alpine-tools',
|
image: 'thegeeklab/alpine-tools',
|
||||||
@ -371,6 +405,13 @@ local PipelineNotifications = {
|
|||||||
arch: 'amd64',
|
arch: 'amd64',
|
||||||
},
|
},
|
||||||
steps: [
|
steps: [
|
||||||
|
{
|
||||||
|
name: 'fetch',
|
||||||
|
image: 'thegeeklab/alpine-tools',
|
||||||
|
commands: [
|
||||||
|
'git fetch --tags',
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
image: 'plugins/manifest',
|
image: 'plugins/manifest',
|
||||||
name: 'manifest-dockerhub',
|
name: 'manifest-dockerhub',
|
||||||
|
55
.drone.yml
55
.drone.yml
@ -7,10 +7,15 @@ platform:
|
|||||||
arch: amd64
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: fetch
|
||||||
|
image: thegeeklab/alpine-tools
|
||||||
|
commands:
|
||||||
|
- git fetch --tags
|
||||||
|
|
||||||
- name: flake8
|
- name: flake8
|
||||||
image: python:3.9
|
image: python:3.9
|
||||||
commands:
|
commands:
|
||||||
- pip install poetry -qq
|
- pip install poetry poetry-dynamic-versioning -qq
|
||||||
- poetry install -q
|
- poetry install -q
|
||||||
- poetry run flake8 ./dockertidy
|
- poetry run flake8 ./dockertidy
|
||||||
environment:
|
environment:
|
||||||
@ -37,7 +42,7 @@ steps:
|
|||||||
- name: python36-pytest
|
- name: python36-pytest
|
||||||
image: python:3.6
|
image: python:3.6
|
||||||
commands:
|
commands:
|
||||||
- pip install poetry -qq
|
- pip install poetry poetry-dynamic-versioning -qq
|
||||||
- poetry install -q
|
- poetry install -q
|
||||||
- poetry run pytest dockertidy --cov=dockertidy --cov-append --no-cov-on-fail
|
- poetry run pytest dockertidy --cov=dockertidy --cov-append --no-cov-on-fail
|
||||||
- poetry version
|
- poetry version
|
||||||
@ -50,7 +55,7 @@ steps:
|
|||||||
- name: python37-pytest
|
- name: python37-pytest
|
||||||
image: python:3.7
|
image: python:3.7
|
||||||
commands:
|
commands:
|
||||||
- pip install poetry -qq
|
- pip install poetry poetry-dynamic-versioning -qq
|
||||||
- poetry install -q
|
- poetry install -q
|
||||||
- poetry run pytest dockertidy --cov=dockertidy --cov-append --no-cov-on-fail
|
- poetry run pytest dockertidy --cov=dockertidy --cov-append --no-cov-on-fail
|
||||||
- poetry version
|
- poetry version
|
||||||
@ -63,7 +68,7 @@ steps:
|
|||||||
- name: python38-pytest
|
- name: python38-pytest
|
||||||
image: python:3.8
|
image: python:3.8
|
||||||
commands:
|
commands:
|
||||||
- pip install poetry -qq
|
- pip install poetry poetry-dynamic-versioning -qq
|
||||||
- poetry install -q
|
- poetry install -q
|
||||||
- poetry run pytest dockertidy --cov=dockertidy --cov-append --no-cov-on-fail
|
- poetry run pytest dockertidy --cov=dockertidy --cov-append --no-cov-on-fail
|
||||||
- poetry version
|
- poetry version
|
||||||
@ -76,7 +81,7 @@ steps:
|
|||||||
- name: python39-pytest
|
- name: python39-pytest
|
||||||
image: python:3.9
|
image: python:3.9
|
||||||
commands:
|
commands:
|
||||||
- pip install poetry -qq
|
- pip install poetry poetry-dynamic-versioning -qq
|
||||||
- poetry install -q
|
- poetry install -q
|
||||||
- poetry run pytest dockertidy --cov=dockertidy --cov-append --no-cov-on-fail
|
- poetry run pytest dockertidy --cov=dockertidy --cov-append --no-cov-on-fail
|
||||||
- poetry version
|
- poetry version
|
||||||
@ -122,10 +127,15 @@ platform:
|
|||||||
arch: amd64
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: fetch
|
||||||
|
image: thegeeklab/alpine-tools
|
||||||
|
commands:
|
||||||
|
- git fetch --tags
|
||||||
|
|
||||||
- name: bandit
|
- name: bandit
|
||||||
image: python:3.9
|
image: python:3.9
|
||||||
commands:
|
commands:
|
||||||
- pip install poetry -qq
|
- pip install poetry poetry-dynamic-versioning -qq
|
||||||
- poetry install -q
|
- poetry install -q
|
||||||
- poetry run bandit -r ./dockertidy -x ./dockertidy/test
|
- poetry run bandit -r ./dockertidy -x ./dockertidy/test
|
||||||
environment:
|
environment:
|
||||||
@ -152,11 +162,15 @@ platform:
|
|||||||
arch: amd64
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: fetch
|
||||||
|
image: thegeeklab/alpine-tools
|
||||||
|
commands:
|
||||||
|
- git fetch --tags
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: python:3.9
|
image: python:3.9
|
||||||
commands:
|
commands:
|
||||||
- pip install poetry poetry-dynamic-versioning -qq
|
- pip install poetry poetry-dynamic-versioning -qq
|
||||||
- pip list
|
|
||||||
- poetry build
|
- poetry build
|
||||||
|
|
||||||
- name: checksum
|
- name: checksum
|
||||||
@ -214,6 +228,11 @@ platform:
|
|||||||
arch: amd64
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: fetch
|
||||||
|
image: thegeeklab/alpine-tools
|
||||||
|
commands:
|
||||||
|
- git fetch --tags
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: python:3.9
|
image: python:3.9
|
||||||
commands:
|
commands:
|
||||||
@ -300,6 +319,11 @@ platform:
|
|||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: fetch
|
||||||
|
image: thegeeklab/alpine-tools
|
||||||
|
commands:
|
||||||
|
- git fetch --tags
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: python:3.9
|
image: python:3.9
|
||||||
commands:
|
commands:
|
||||||
@ -386,6 +410,11 @@ platform:
|
|||||||
arch: arm
|
arch: arm
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: fetch
|
||||||
|
image: thegeeklab/alpine-tools
|
||||||
|
commands:
|
||||||
|
- git fetch --tags
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: python:3.9
|
image: python:3.9
|
||||||
commands:
|
commands:
|
||||||
@ -475,6 +504,11 @@ concurrency:
|
|||||||
limit: 1
|
limit: 1
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: fetch
|
||||||
|
image: thegeeklab/alpine-tools
|
||||||
|
commands:
|
||||||
|
- git fetch --tags
|
||||||
|
|
||||||
- name: assets
|
- name: assets
|
||||||
image: thegeeklab/alpine-tools
|
image: thegeeklab/alpine-tools
|
||||||
commands:
|
commands:
|
||||||
@ -567,6 +601,11 @@ platform:
|
|||||||
arch: amd64
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: fetch
|
||||||
|
image: thegeeklab/alpine-tools
|
||||||
|
commands:
|
||||||
|
- git fetch --tags
|
||||||
|
|
||||||
- name: manifest-dockerhub
|
- name: manifest-dockerhub
|
||||||
image: plugins/manifest
|
image: plugins/manifest
|
||||||
settings:
|
settings:
|
||||||
@ -653,6 +692,6 @@ depends_on:
|
|||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: afc5954b922971a587d3b98abc91482e354323940c6342eb2d4d1e4db0caaaf3
|
hmac: b6c89922bc97dcb1dbfbfd8b9e1b0dd0c84f07ef607dc2a5a694822f4cf198e4
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user