docker-hugo/.drone.yml

111 lines
1.9 KiB
YAML
Raw Permalink Normal View History

2024-05-02 07:15:25 +00:00
---
2022-10-02 14:55:45 +00:00
kind: pipeline
type: docker
name: linux-amd64
platform:
arch: amd64
os: linux
steps:
- name: build
image: plugins/docker:linux-amd64
settings:
2023-02-14 00:46:59 +00:00
build_args:
- HUGO_ARCH=amd64
2022-10-02 14:55:45 +00:00
dockerfile: Dockerfile
dry_run: true
repo: docker.asperti.com/paspo/hugo
when:
event:
- push
- name: build_and_publish
image: plugins/docker:linux-amd64
settings:
2023-02-14 00:46:59 +00:00
build_args:
- HUGO_ARCH=amd64
2022-10-02 14:55:45 +00:00
dockerfile: Dockerfile
force_tag: true
password:
from_secret: docker_password
registry: docker.asperti.com
repo: docker.asperti.com/paspo/hugo
2024-05-02 08:07:48 +00:00
squash: true
2022-10-02 14:55:45 +00:00
username:
from_secret: docker_username
tags:
2024-05-02 07:23:59 +00:00
- latest-amd64
2022-10-02 14:55:45 +00:00
when:
event:
- tag
---
kind: pipeline
type: docker
name: linux-arm64
platform:
arch: arm64
os: linux
steps:
- name: build
image: plugins/docker:linux-arm64
settings:
2023-02-14 00:46:59 +00:00
build_args:
- HUGO_ARCH=arm64
2022-10-02 14:55:45 +00:00
dockerfile: Dockerfile
dry_run: true
repo: docker.asperti.com/paspo/hugo
when:
event:
- push
- name: build_and_publish
image: plugins/docker:linux-arm64
settings:
2023-02-14 00:46:59 +00:00
build_args:
- HUGO_ARCH=arm64
2022-10-02 14:55:45 +00:00
dockerfile: Dockerfile
force_tag: true
password:
from_secret: docker_password
registry: docker.asperti.com
repo: docker.asperti.com/paspo/hugo
2024-05-02 08:07:48 +00:00
squash: true
2022-10-02 14:55:45 +00:00
username:
from_secret: docker_username
tags:
2024-05-02 07:23:59 +00:00
- latest-arm64
2022-10-02 14:55:45 +00:00
when:
event:
- tag
---
kind: pipeline
type: docker
name: manifest
steps:
2024-05-02 07:15:25 +00:00
- 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
2022-10-02 14:55:45 +00:00
trigger:
event:
- tag
depends_on:
- linux-amd64
- linux-arm64