gitea container repo
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Paolo Asperti 2022-09-27 15:25:46 +02:00
parent 5a78015465
commit 488acf16c1
Signed by: paspo
GPG Key ID: 06D46905D19D5182
2 changed files with 127 additions and 15 deletions

View File

@ -36,6 +36,25 @@ steps:
event:
- tag
- name: build_and_publish2
image: plugins/docker:linux-amd64
settings:
dockerfile: Dockerfile
force_tag: true
password:
from_secret: docker_gitea_password
registry: git.asperti.com
repo: git.asperti.com/paspo/docker-ftps
username:
from_secret: docker_gitea_username
tags:
- ${DRONE_TAG}-linux-amd64
- ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}-linux-amd64
- ${DRONE_SEMVER_MAJOR}-linux-amd64
when:
event:
- tag
---
kind: pipeline
type: docker
@ -75,6 +94,25 @@ steps:
event:
- tag
- name: build_and_publish2
image: plugins/docker:linux-arm64
settings:
dockerfile: Dockerfile
force_tag: true
password:
from_secret: docker_gitea_password
registry: git.asperti.com
repo: git.asperti.com/paspo/docker-ftps
username:
from_secret: docker_gitea_username
tags:
- ${DRONE_TAG}-linux-arm64
- ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}-linux-arm64
- ${DRONE_SEMVER_MAJOR}-linux-arm64
when:
event:
- tag
---
kind: pipeline
type: docker
@ -114,27 +152,68 @@ steps:
event:
- tag
- name: build_and_publish2
image: plugins/docker:linux-arm
settings:
dockerfile: Dockerfile
force_tag: true
password:
from_secret: docker_gitea_password
registry: git.asperti.com
repo: git.asperti.com/paspo/docker-ftps
username:
from_secret: docker_gitea_username
tags:
- ${DRONE_TAG}-linux-arm
- ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}-linux-arm
- ${DRONE_SEMVER_MAJOR}-linux-arm
when:
event:
- tag
---
kind: pipeline
type: docker
name: manifest
steps:
- name: manifest
image: plugins/manifest
settings:
force_tag: true
ignore_missing: true
spec: manifest.tmpl
username:
from_secret: docker_username
password:
from_secret: docker_password
tags:
- latest
- ${DRONE_TAG}
- ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}
- ${DRONE_SEMVER_MAJOR}
- name: manifest
image: plugins/manifest
settings:
force_tag: true
ignore_missing: true
spec: manifest.tmpl
username:
from_secret: docker_username
password:
from_secret: docker_password
tags:
- latest
- ${DRONE_TAG}
- ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}
- ${DRONE_SEMVER_MAJOR}
when:
event:
- tag
- name: manifest2
image: plugins/manifest
settings:
force_tag: true
ignore_missing: true
spec: manifest2.tmpl
username:
from_secret: docker_gitea_username
password:
from_secret: docker_gitea_password
tags:
- latest
- ${DRONE_TAG}
- ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}
- ${DRONE_SEMVER_MAJOR}
when:
event:
- tag
trigger:
event:
@ -144,3 +223,5 @@ depends_on:
- linux-amd64
- linux-arm64
- linux-arm

31
manifest2.tmpl Normal file
View File

@ -0,0 +1,31 @@
image: git.asperti.com/paspo/docker-ftps:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
{{#if build.tags}}
tags:
{{#each build.tags}}
- {{this}}
{{/each}}
{{/if}}
manifests:
-
image: git.asperti.com/paspo/docker-ftps:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64
platform:
architecture: amd64
os: linux
-
image: git.asperti.com/paspo/docker-ftps:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64
platform:
variant: v8
architecture: arm64
os: linux
-
image: git.asperti.com/paspo/docker-ftps:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm
platform:
variant: v7
architecture: arm
os: linux
-
image: git.asperti.com/paspo/docker-ftps:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm
platform:
variant: v6
architecture: arm
os: linux