add .drone.yml (and readme labels)
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-08-28 16:27:15 +02:00
parent 9f5d50ce1a
commit 2e507490e9
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
2 changed files with 74 additions and 0 deletions

69
.drone.yml Normal file

@ -0,0 +1,69 @@
---
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
- linux-amd64
- ${DRONE_COMMIT_SHA:0:8}
- hugo-v0.101.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]
...

@ -1,5 +1,10 @@
# [scratch-hugo](https://git.dotya.ml/wanderer-containers/scratch-hugo) # [scratch-hugo](https://git.dotya.ml/wanderer-containers/scratch-hugo)
[![Build Status](https://drone.dotya.ml/api/badges/wanderer-containers/scratch-hugo/status.svg?ref=refs/heads/development)](https://drone.dotya.ml/wanderer-containers/scratch-hugo)
[![Docker Image Version](https://img.shields.io/docker/v/immawanderer/scratch-hugo/linux-amd64)](https://hub.docker.com/r/immawanderer/scratch-hugo/tags/?page=1&ordering=last_updated&name=linux-amd64)
[![Docker Image Size (tag)](https://img.shields.io/docker/image-size/immawanderer/scratch-hugo/linux-amd64)](https://hub.docker.com/r/immawanderer/scratch-hugo/tags/?page=1&ordering=last_updated&name=linux-amd64)
[![Docker pulls](https://img.shields.io/docker/pulls/immawanderer/scratch-hugo)](https://hub.docker.com/r/immawanderer/scratch-hugo/)
This repository provides a Containerfile to effortlessly get a container image containing statically linked [Hugo](https://gohugo.io) static site generator (extended version) and absolutely nothing else. This repository provides a Containerfile to effortlessly get a container image containing statically linked [Hugo](https://gohugo.io) static site generator (extended version) and absolutely nothing else.
The image is rebuilt weekly in CI and automatically pushed to [DockerHub](https://hub.docker.com/r/immawanderer/scratch-hugo). The image is rebuilt weekly in CI and automatically pushed to [DockerHub](https://hub.docker.com/r/immawanderer/scratch-hugo).