migrate to new orga

This commit is contained in:
Robert Kaussow 2020-09-24 20:17:44 +02:00
parent 50a80a30c5
commit 74cf7e7c7a
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
10 changed files with 255 additions and 80 deletions

View File

@ -175,7 +175,7 @@ local PipelineBuildContainer(arch='amd64') = {
settings: { settings: {
dry_run: true, dry_run: true,
dockerfile: 'Dockerfile', dockerfile: 'Dockerfile',
repo: 'xoxys/git-batch', repo: 'thegeeklab/git-batch',
username: { from_secret: 'docker_username' }, username: { from_secret: 'docker_username' },
password: { from_secret: 'docker_password' }, password: { from_secret: 'docker_password' },
}, },
@ -184,20 +184,37 @@ local PipelineBuildContainer(arch='amd64') = {
}, },
}, },
{ {
name: 'publish', name: 'publish-dockerhub',
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,
dockerfile: 'Dockerfile', dockerfile: 'docker/Dockerfile',
repo: 'xoxys/git-batch', repo: 'thegeeklab/${DRONE_REPO_NAME}',
username: { from_secret: 'docker_username' }, username: { from_secret: 'docker_username' },
password: { from_secret: 'docker_password' }, password: { from_secret: 'docker_password' },
}, },
when: { when: {
ref: ['refs/heads/master', 'refs/tags/**'], ref: ['refs/heads/master', 'refs/tags/**'],
}, },
depends_on: ['dryrun'],
},
{
name: 'publish-quay',
image: 'plugins/docker:18-linux-' + arch,
settings: {
auto_tag: true,
auto_tag_suffix: arch,
dockerfile: 'docker/Dockerfile',
registry: 'quay.io',
repo: 'quay.io/thegeeklab/${DRONE_REPO_NAME}',
username: { from_secret: 'quay_username' },
password: { from_secret: 'quay_password' },
},
when: {
ref: ['refs/heads/master', 'refs/tags/**'],
},
depends_on: ['dryrun'],
}, },
], ],
depends_on: [ depends_on: [
@ -218,25 +235,62 @@ local PipelineNotifications = {
steps: [ steps: [
{ {
image: 'plugins/manifest', image: 'plugins/manifest',
name: 'manifest', name: 'manifest-dockerhub',
settings: { settings: {
ignore_missing: true, ignore_missing: true,
auto_tag: true, auto_tag: true,
username: { from_secret: 'docker_username' }, username: { from_secret: 'docker_username' },
password: { from_secret: 'docker_password' }, password: { from_secret: 'docker_password' },
spec: 'manifest.tmpl', spec: 'docker/manifest.tmpl',
},
when: {
status: ['success'],
}, },
}, },
{ {
name: 'readme', image: 'plugins/manifest',
image: 'sheogorath/readme-to-dockerhub', name: 'manifest-quay',
settings: {
ignore_missing: true,
auto_tag: true,
username: { from_secret: 'quay_username' },
password: { from_secret: 'quay_password' },
spec: 'docker/manifest-quay.tmpl',
},
when: {
status: ['success'],
},
},
{
name: 'pushrm-dockerhub',
image: 'chko/docker-pushrm:1',
environment: { environment: {
DOCKERHUB_USERNAME: { from_secret: 'docker_username' }, DOCKER_PASS: {
DOCKERHUB_PASSWORD: { from_secret: 'docker_password' }, from_secret: 'docker_password',
DOCKERHUB_REPO_PREFIX: 'xoxys', },
DOCKERHUB_REPO_NAME: 'git-batch', DOCKER_USER: {
README_PATH: 'README.md', from_secret: 'docker_username',
SHORT_DESCRIPTION: 'git-batch - Automate cloning a single branch from a repo list', },
PUSHRM_FILE: 'README.md',
PUSHRM_SHORT: 'GitHub release notification bot',
PUSHRM_TARGET: 'thegeeklab/${DRONE_REPO_NAME}',
},
when: {
status: ['success'],
},
},
{
name: 'pushrm-quay',
image: 'chko/docker-pushrm:1',
environment: {
APIKEY__QUAY_IO: {
from_secret: 'quay_token',
},
PUSHRM_FILE: 'README.md',
PUSHRM_TARGET: 'quay.io/thegeeklab/${DRONE_REPO_NAME}',
},
when: {
status: ['success'],
}, },
}, },
{ {

View File

@ -200,29 +200,49 @@ steps:
dry_run: true dry_run: true
password: password:
from_secret: docker_password from_secret: docker_password
repo: xoxys/git-batch repo: thegeeklab/git-batch
username: username:
from_secret: docker_username from_secret: docker_username
when: when:
ref: ref:
- refs/pull/** - refs/pull/**
- name: publish - name: publish-dockerhub
pull: always
image: plugins/docker:18-linux-amd64 image: plugins/docker:18-linux-amd64
settings: settings:
auto_tag: true auto_tag: true
auto_tag_suffix: amd64 auto_tag_suffix: amd64
dockerfile: Dockerfile dockerfile: docker/Dockerfile
password: password:
from_secret: docker_password from_secret: docker_password
repo: xoxys/git-batch repo: thegeeklab/${DRONE_REPO_NAME}
username: username:
from_secret: docker_username from_secret: docker_username
when: when:
ref: ref:
- refs/heads/master - refs/heads/master
- refs/tags/** - refs/tags/**
depends_on:
- dryrun
- name: publish-quay
image: plugins/docker:18-linux-amd64
settings:
auto_tag: true
auto_tag_suffix: amd64
dockerfile: docker/Dockerfile
password:
from_secret: quay_password
registry: quay.io
repo: quay.io/thegeeklab/${DRONE_REPO_NAME}
username:
from_secret: quay_username
when:
ref:
- refs/heads/master
- refs/tags/**
depends_on:
- dryrun
trigger: trigger:
ref: ref:
@ -256,29 +276,49 @@ steps:
dry_run: true dry_run: true
password: password:
from_secret: docker_password from_secret: docker_password
repo: xoxys/git-batch repo: thegeeklab/git-batch
username: username:
from_secret: docker_username from_secret: docker_username
when: when:
ref: ref:
- refs/pull/** - refs/pull/**
- name: publish - name: publish-dockerhub
pull: always
image: plugins/docker:18-linux-arm64 image: plugins/docker:18-linux-arm64
settings: settings:
auto_tag: true auto_tag: true
auto_tag_suffix: arm64 auto_tag_suffix: arm64
dockerfile: Dockerfile dockerfile: docker/Dockerfile
password: password:
from_secret: docker_password from_secret: docker_password
repo: xoxys/git-batch repo: thegeeklab/${DRONE_REPO_NAME}
username: username:
from_secret: docker_username from_secret: docker_username
when: when:
ref: ref:
- refs/heads/master - refs/heads/master
- refs/tags/** - refs/tags/**
depends_on:
- dryrun
- name: publish-quay
image: plugins/docker:18-linux-arm64
settings:
auto_tag: true
auto_tag_suffix: arm64
dockerfile: docker/Dockerfile
password:
from_secret: quay_password
registry: quay.io
repo: quay.io/thegeeklab/${DRONE_REPO_NAME}
username:
from_secret: quay_username
when:
ref:
- refs/heads/master
- refs/tags/**
depends_on:
- dryrun
trigger: trigger:
ref: ref:
@ -312,29 +352,49 @@ steps:
dry_run: true dry_run: true
password: password:
from_secret: docker_password from_secret: docker_password
repo: xoxys/git-batch repo: thegeeklab/git-batch
username: username:
from_secret: docker_username from_secret: docker_username
when: when:
ref: ref:
- refs/pull/** - refs/pull/**
- name: publish - name: publish-dockerhub
pull: always
image: plugins/docker:18-linux-arm image: plugins/docker:18-linux-arm
settings: settings:
auto_tag: true auto_tag: true
auto_tag_suffix: arm auto_tag_suffix: arm
dockerfile: Dockerfile dockerfile: docker/Dockerfile
password: password:
from_secret: docker_password from_secret: docker_password
repo: xoxys/git-batch repo: thegeeklab/${DRONE_REPO_NAME}
username: username:
from_secret: docker_username from_secret: docker_username
when: when:
ref: ref:
- refs/heads/master - refs/heads/master
- refs/tags/** - refs/tags/**
depends_on:
- dryrun
- name: publish-quay
image: plugins/docker:18-linux-arm
settings:
auto_tag: true
auto_tag_suffix: arm
dockerfile: docker/Dockerfile
password:
from_secret: quay_password
registry: quay.io
repo: quay.io/thegeeklab/${DRONE_REPO_NAME}
username:
from_secret: quay_username
when:
ref:
- refs/heads/master
- refs/tags/**
depends_on:
- dryrun
trigger: trigger:
ref: ref:
@ -354,28 +414,58 @@ platform:
arch: amd64 arch: amd64
steps: steps:
- name: manifest - name: manifest-dockerhub
image: plugins/manifest image: plugins/manifest
settings: settings:
auto_tag: true auto_tag: true
ignore_missing: true ignore_missing: true
password: password:
from_secret: docker_password from_secret: docker_password
spec: manifest.tmpl spec: docker/manifest.tmpl
username: username:
from_secret: docker_username from_secret: docker_username
when:
status:
- success
- name: readme - name: manifest-quay
image: sheogorath/readme-to-dockerhub image: plugins/manifest
settings:
auto_tag: true
ignore_missing: true
password:
from_secret: quay_password
spec: docker/manifest-quay.tmpl
username:
from_secret: quay_username
when:
status:
- success
- name: pushrm-dockerhub
image: chko/docker-pushrm:1
environment: environment:
DOCKERHUB_PASSWORD: DOCKER_PASS:
from_secret: docker_password from_secret: docker_password
DOCKERHUB_REPO_NAME: git-batch DOCKER_USER:
DOCKERHUB_REPO_PREFIX: xoxys
DOCKERHUB_USERNAME:
from_secret: docker_username from_secret: docker_username
README_PATH: README.md PUSHRM_FILE: README.md
SHORT_DESCRIPTION: git-batch - Automate cloning a single branch from a repo list PUSHRM_SHORT: GitHub release notification bot
PUSHRM_TARGET: thegeeklab/${DRONE_REPO_NAME}
when:
status:
- success
- name: pushrm-quay
image: chko/docker-pushrm:1
environment:
APIKEY__QUAY_IO:
from_secret: quay_token
PUSHRM_FILE: README.md
PUSHRM_TARGET: quay.io/thegeeklab/${DRONE_REPO_NAME}
when:
status:
- success
- name: matrix - name: matrix
image: plugins/matrix image: plugins/matrix
@ -406,6 +496,6 @@ depends_on:
--- ---
kind: signature kind: signature
hmac: 036a13c26fb62c830f919c9154fe647c70173f088cd8e59e0fc8b133b4cd4359 hmac: b460d6f3e540ccfe73ddca52125517a858429b3de7e7354065cb4130b4238358
... ...

View File

@ -1,8 +1,8 @@
--- ---
repository: repository:
name: git-batch name: git-batch
description: Simple tool to automate cloning a single branch from a list of repositories description: Automate cloning a single branch from a list of repositories
topics: git, batch, automation, python topics: git, automation, python
private: false private: false
has_issues: true has_issues: true

View File

@ -1 +1,2 @@
* initial release - INTERNAL
- publish to dockerhub and quay.io

View File

@ -1,17 +1,23 @@
# git-batch # git-batch
[![Build Status](https://img.shields.io/drone/build/xoxys/git-batch?logo=drone)](https://cloud.drone.io/xoxys/git-batch)
[![Docker Hub](https://img.shields.io/badge/docker-latest-blue.svg?logo=docker&logoColor=white)](https://hub.docker.com/r/xoxys/git-batch) Automate cloning a single branch from a list of repositories
[![Build Status](https://img.shields.io/drone/build/thegeeklab/git-batch?logo=drone)](https://cloud.drone.io/thegeeklab/git-batch)
[![Docker Hub](https://img.shields.io/badge/dockerhub-latest-blue.svg?logo=docker&logoColor=white)](https://hub.docker.com/r/thegeeklab/git-batch)
[![Quay.io](https://img.shields.io/badge/quay-latest-blue.svg?logo=docker&logoColor=white)](https://quay.io/repository/thegeeklab/git-batch)
[![Python Version](https://img.shields.io/pypi/pyversions/git-batch.svg)](https://pypi.org/project/git-batch/) [![Python Version](https://img.shields.io/pypi/pyversions/git-batch.svg)](https://pypi.org/project/git-batch/)
[![PyPi Status](https://img.shields.io/pypi/status/git-batch.svg)](https://pypi.org/project/git-batch/) [![PyPi Status](https://img.shields.io/pypi/status/git-batch.svg)](https://pypi.org/project/git-batch/)
[![PyPi Release](https://img.shields.io/pypi/v/git-batch.svg)](https://pypi.org/project/git-batch/) [![PyPi Release](https://img.shields.io/pypi/v/git-batch.svg)](https://pypi.org/project/git-batch/)
[![License: MIT](https://img.shields.io/github/license/xoxys/git-batch)](LICENSE) [![GitHub contributors](https://img.shields.io/github/contributors/thegeeklab/git-batch)](https://github.com/thegeeklab/git-batch/graphs/contributors)
[![Source: GitHub](https://img.shields.io/badge/source-github-blue.svg?logo=github&logoColor=white)](https://github.com/thegeeklab/git-batch)
[![License: MIT](https://img.shields.io/github/license/thegeeklab/git-batch)](<[LICENSE](https://github.com/thegeeklab/git-batch/blob/master/LICENSE)>)
Simple tool to automate cloning a single branch from a list of repositories. Simple tool to automate cloning a single branch from a list of repositories.
## Contributors
Special thanks goes to all [contributors](https://github.com/thegeeklab/git-batch/graphs/contributors).
## License ## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. This project is licensed under the MIT License - see the [LICENSE](https://github.com/thegeeklab/git-batch/blob/master/LICENSE) file for details.
## Maintainers and Contributors
[Robert Kaussow](https://github.com/xoxys)

View File

@ -1,8 +1,8 @@
FROM python:3.7-alpine FROM python:3.7-alpine
LABEL maintainer="Robert Kaussow <mail@geeklabor.de>" \ LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>" \
org.label-schema.name="git-batch" \ org.label-schema.name="git-batch" \
org.label-schema.vcs-url="https://github.com/xoxys/git-batch" \ org.label-schema.vcs-url="https://github.com/thegeeklab/git-batch" \
org.label-schema.vendor="Robert Kaussow" \ org.label-schema.vendor="Robert Kaussow" \
org.label-schema.schema-version="1.0" org.label-schema.schema-version="1.0"

24
docker/manifest-quay.tmpl Normal file
View File

@ -0,0 +1,24 @@
image: quay.io/thegeeklab/git-batch:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
{{#if build.tags}}
tags:
{{#each build.tags}}
- {{this}}
{{/each}}
{{/if}}
manifests:
- image: quay.io/thegeeklab/git-batch:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}amd64
platform:
architecture: amd64
os: linux
- image: quay.io/thegeeklab/git-batch:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}arm64
platform:
architecture: arm64
os: linux
variant: v8
- image: quay.io/thegeeklab/git-batch:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}arm
platform:
architecture: arm
os: linux
variant: v7

24
docker/manifest.tmpl Normal file
View File

@ -0,0 +1,24 @@
image: thegeeklab/git-batch:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
{{#if build.tags}}
tags:
{{#each build.tags}}
- {{this}}
{{/each}}
{{/if}}
manifests:
- image: thegeeklab/git-batch:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}amd64
platform:
architecture: amd64
os: linux
- image: thegeeklab/git-batch:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}arm64
platform:
architecture: arm64
os: linux
variant: v8
- image: thegeeklab/git-batch:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}arm
platform:
architecture: arm
os: linux
variant: v7

View File

@ -5,5 +5,5 @@ __project__ = "git-batch"
__version__ = "0.2.0" __version__ = "0.2.0"
__license__ = "MIT" __license__ = "MIT"
__maintainer__ = "Robert Kaussow" __maintainer__ = "Robert Kaussow"
__email__ = "mail@geeklabor.de" __email__ = "mail@thegeeklab.de"
__url__ = "https://github.com/xoxys/git-batch" __url__ = "https://github.com/thegeeklab/git-batch"

View File

@ -1,24 +0,0 @@
image: xoxys/git-batch:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
{{#if build.tags}}
tags:
{{#each build.tags}}
- {{this}}
{{/each}}
{{/if}}
manifests:
- image: xoxys/git-batch:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}amd64
platform:
architecture: amd64
os: linux
- image: xoxys/git-batch:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}arm64
platform:
architecture: arm64
os: linux
variant: v8
- image: xoxys/git-batch:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}arm
platform:
architecture: arm
os: linux
variant: v7