nix-statix/.drone.yml
surtur b0105cf584
All checks were successful
continuous-integration/drone/push Build is passing
chore: bump base image to nix2.11.0
2022-10-17 16:54:16 +02:00

77 lines
1.6 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: kaniko-build
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}
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
- nix2.11.0
- linux-amd64
- ${DRONE_COMMIT_SHA:0:8}
- ${DRONE_COMMIT_SHA:0:8}-nix2.11.0
repo: immawanderer/nix-statix
username:
from_secret: dh_username
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: ac38113cea0b3914210b4cb2d6c815281c7ee433e3c3931f6165046faa572f7e
...