update drone
continuous-integration/drone/tag Build is passing Details

This commit is contained in:
Paolo Asperti 2021-12-12 22:08:49 +01:00
parent 4e305387fe
commit 0d107f80e1
Signed by: paspo
GPG Key ID: 06D46905D19D5182
1 changed files with 19 additions and 53 deletions

View File

@ -1,77 +1,43 @@
kind: pipeline kind: pipeline
type: docker
name: default name: default
steps: steps:
- name: build-alpine
image: plugins/docker:linux-amd64
pull: always
settings:
dockerfile: Dockerfile-alpine
daemon_off: false
dry_run: true
repo: docker.asperti.com/paspo/angry-squid
tags:
- latest
- alpine-latest
when:
event:
exclude:
- tag
- name: build-debian
image: plugins/docker:linux-amd64
pull: always
settings:
dockerfile: Dockerfile-debian
daemon_off: false
dry_run: true
repo: docker.asperti.com/paspo/angry-squid
tags:
- debian-latest
when:
event:
exclude:
- tag
- name: build_and_publish-alpine - name: build_and_publish-alpine
image: plugins/docker:linux-amd64 image: plugins/docker:linux-amd64
pull: always
settings: settings:
dockerfile: Dockerfile-alpine username:
auto_tag: true from_secret: docker_username
auto_tag_suffix: alpine
force_tag: true
daemon_off: false
password: password:
from_secret: docker_password from_secret: docker_password
dockerfile: Dockerfile-alpine
registry: docker.asperti.com registry: docker.asperti.com
repo: docker.asperti.com/paspo/angry-squid repo: docker.asperti.com/paspo/angry-squid
tags: tags:
- latest - latest
- alpine-latest - alpine-latest
username: - ${DRONE_TAG}
from_secret: docker_username - alpine-${DRONE_TAG}
when: - ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}
event: - alpine-${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}
- tag force_tag: true
- name: build_and_publish-debian - name: build_and_publish-debian
image: plugins/docker:linux-amd64 image: plugins/docker:linux-amd64
pull: always
settings: settings:
dockerfile: Dockerfile-debian username:
auto_tag: true from_secret: docker_username
auto_tag_suffix: debian
force_tag: true
daemon_off: false
password: password:
from_secret: docker_password from_secret: docker_password
dockerfile: Dockerfile-debian
registry: docker.asperti.com registry: docker.asperti.com
repo: docker.asperti.com/paspo/angry-squid repo: docker.asperti.com/paspo/angry-squid
tags: tags:
- debian-latest - debian-latest
username: - debian-${DRONE_TAG}
from_secret: docker_username - debian-${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}
when: force_tag: true
event:
- tag trigger:
event:
- tag