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: event:
- tag - 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 kind: pipeline
type: docker type: docker
@ -75,6 +94,25 @@ steps:
event: event:
- tag - 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 kind: pipeline
type: docker type: docker
@ -114,27 +152,68 @@ steps:
event: event:
- tag - 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 kind: pipeline
type: docker type: docker
name: manifest name: manifest
steps: steps:
- name: manifest - name: manifest
image: plugins/manifest image: plugins/manifest
settings: settings:
force_tag: true force_tag: true
ignore_missing: true ignore_missing: true
spec: manifest.tmpl spec: manifest.tmpl
username: username:
from_secret: docker_username from_secret: docker_username
password: password:
from_secret: docker_password from_secret: docker_password
tags: tags:
- latest - latest
- ${DRONE_TAG} - ${DRONE_TAG}
- ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR} - ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}
- ${DRONE_SEMVER_MAJOR} - ${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: trigger:
event: event:
@ -144,3 +223,5 @@ depends_on:
- linux-amd64 - linux-amd64
- linux-arm64 - linux-arm64
- linux-arm - 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