alpine-hugo/.drone.yml
surtur 2708a93201
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
ci: build containers using buildah
2022-11-05 19:12:22 +01:00

78 lines
1.7 KiB
YAML

---
kind: pipeline
type: docker
name: testing
platform:
os: linux
arch: amd64
steps:
- name: hadolint
pull: always
image: ghcr.io/hadolint/hadolint:v2.10.0-alpine
commands:
- hadolint --version
- hadolint Containerfile
when:
ref:
- refs/heads/development
- refs/heads/feature-**
- refs/pull/**
- refs/tags/**
event:
exclude: [cron]
- name: buildah build
pull: always
image: docker.io/library/alpine:3.16.2
environment:
BUILD_DATE: $(date -u +"%Y-%m-%dT%H:%M:%SZ")
VCS_REF: ${DRONE_COMMIT_SHA:0:7}
BUILDAH_ISOLATION: chroot
_BUILDAH_STARTED_IN_USERNS: ""
commands:
- apk update
- apk add --no-cache buildah
- buildah bud -f Containerfile --build-arg BUILD_DATE="$BUILD_DATE" --build-arg VCS_REF="$VCS_REF"
when:
ref:
- refs/heads/feature-**
- refs/pull/**
- refs/tags/**
event:
exclude: [cron]
- name: kaniko-publish
pull: always
image: docker.io/immawanderer/drone-kaniko:linux-amd64
settings:
dockerfile: Containerfile
context: .
args:
- BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")"
- VCS_REF=${DRONE_COMMIT_SHA:0:7}
tags:
- latest
- linux-amd64
- ${DRONE_COMMIT_SHA:0:8}
- hugo-v0.105.0
repo: immawanderer/${DRONE_REPO_NAME}
username: immawanderer
password:
from_secret: dh_token
when:
ref:
- refs/heads/development
event:
exclude: [pull_request, tag]
trigger:
event: [push, pull_request, cron, tag]
---
kind: signature
hmac: f2f21e0af4b1f6eb8c1e42ccd55d679009480b0a2c883185078dcfa5e158fb98
...