Compare commits
41 Commits
1.0.3
...
504aa38362
| Author | SHA1 | Date | |
|---|---|---|---|
| 504aa38362 | |||
| 5fcb0c0e08 | |||
| aace951501 | |||
| 193f104408 | |||
| c4e8faff3b | |||
| 0080d188ab | |||
| eefaba12cb | |||
| 114c87fefe | |||
| a8eb04c76b | |||
| debd509868 | |||
| e8d9f7c8cd | |||
| 98ab91f73f | |||
| 694ba8f5ce | |||
| c232595f36 | |||
| 6ac07ec9a0 | |||
| ab73132553 | |||
| 76cdb2640e | |||
| f1f322d58a | |||
| bfbc0e22d7 | |||
| f3dc829111 | |||
| 9c3caf751e | |||
| 1ac78908ad | |||
| f990871798 | |||
| 2ecac58414 | |||
| 613393f328 | |||
| 30026b4e17 | |||
| 580845afe0 | |||
| d4aa8ff410 | |||
| b3436f3b2c | |||
| 4541df4c8a | |||
| 26c3a15c81 | |||
| e10acf4e46 | |||
| 2d8fb52b23 | |||
| 511704a90f | |||
| 70d6215ca3 | |||
| d759db2bb0 | |||
| c04d6febad | |||
| cad9b48ab9 | |||
| 327208391b | |||
| ee7034cba3 | |||
| 78f681fb41 |
105
.drone.yml
105
.drone.yml
@ -1,11 +1,12 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: build-release-images
|
name: build-main-images
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
exclude:
|
exclude:
|
||||||
- pull_request
|
- pull_request
|
||||||
ref:
|
ref:
|
||||||
|
- refs/heads/main
|
||||||
- refs/tags/**
|
- refs/tags/**
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
@ -18,16 +19,36 @@ steps:
|
|||||||
image: docker:git
|
image: docker:git
|
||||||
commands:
|
commands:
|
||||||
- git fetch --tags
|
- git fetch --tags
|
||||||
|
when:
|
||||||
|
ref:
|
||||||
|
- refs/tags/**
|
||||||
depends_on:
|
depends_on:
|
||||||
- clone
|
- clone
|
||||||
|
|
||||||
|
# Set tags for main branch
|
||||||
- name: make-tags
|
- name: make-tags
|
||||||
image: node
|
image: node
|
||||||
commands:
|
commands:
|
||||||
- echo -n "${DRONE_TAG}, latest" > .tags
|
- echo -n "${DRONE_COMMIT_SHA:0:8}, latest" > .tags
|
||||||
|
when:
|
||||||
|
ref:
|
||||||
|
- refs/heads/main
|
||||||
depends_on:
|
depends_on:
|
||||||
- get-tags
|
- get-tags
|
||||||
|
- clone
|
||||||
|
|
||||||
|
- name: make-tags-release
|
||||||
|
image: node
|
||||||
|
commands:
|
||||||
|
- echo -n "${DRONE_TAG}, latest" > .tags
|
||||||
|
when:
|
||||||
|
ref:
|
||||||
|
- refs/tags/**
|
||||||
|
depends_on:
|
||||||
|
- get-tags
|
||||||
|
- clone
|
||||||
|
|
||||||
|
# Build containers from main branch
|
||||||
- name: build-gitea
|
- name: build-gitea
|
||||||
image: thegeeklab/drone-docker-buildx
|
image: thegeeklab/drone-docker-buildx
|
||||||
privileged: true
|
privileged: true
|
||||||
@ -44,6 +65,7 @@ steps:
|
|||||||
- linux/amd64
|
- linux/amd64
|
||||||
depends_on:
|
depends_on:
|
||||||
- make-tags
|
- make-tags
|
||||||
|
- make-tags-release
|
||||||
|
|
||||||
- name: build-github
|
- name: build-github
|
||||||
image: thegeeklab/drone-docker-buildx
|
image: thegeeklab/drone-docker-buildx
|
||||||
@ -61,6 +83,7 @@ steps:
|
|||||||
- linux/amd64
|
- linux/amd64
|
||||||
depends_on:
|
depends_on:
|
||||||
- make-tags
|
- make-tags
|
||||||
|
- make-tags-release
|
||||||
|
|
||||||
- name: release-gitea
|
- name: release-gitea
|
||||||
image: goreleaser/goreleaser
|
image: goreleaser/goreleaser
|
||||||
@ -69,6 +92,9 @@ steps:
|
|||||||
from_secret: gitea_token
|
from_secret: gitea_token
|
||||||
commands:
|
commands:
|
||||||
- goreleaser release -f .goreleaser-gitea.yaml
|
- goreleaser release -f .goreleaser-gitea.yaml
|
||||||
|
when:
|
||||||
|
ref:
|
||||||
|
- refs/tags/**
|
||||||
depends_on:
|
depends_on:
|
||||||
- build-gitea
|
- build-gitea
|
||||||
|
|
||||||
@ -79,6 +105,9 @@ steps:
|
|||||||
from_secret: github_token
|
from_secret: github_token
|
||||||
commands:
|
commands:
|
||||||
- goreleaser release -f .goreleaser-github.yaml
|
- goreleaser release -f .goreleaser-github.yaml
|
||||||
|
when:
|
||||||
|
ref:
|
||||||
|
- refs/tags/**
|
||||||
depends_on:
|
depends_on:
|
||||||
- build-github
|
- build-github
|
||||||
|
|
||||||
@ -94,78 +123,6 @@ steps:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- release-gitea
|
- release-gitea
|
||||||
- release-github
|
- release-github
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: build-main-images
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
exclude:
|
|
||||||
- pull_request
|
|
||||||
ref:
|
|
||||||
- refs/heads/main
|
|
||||||
|
|
||||||
platform:
|
|
||||||
os: linux
|
|
||||||
arch: amd64
|
|
||||||
|
|
||||||
steps:
|
|
||||||
|
|
||||||
- name: make-tags
|
|
||||||
image: node
|
|
||||||
commands:
|
|
||||||
- echo -n "${DRONE_COMMIT_SHA:0:8}, latest" > .tags
|
|
||||||
when:
|
|
||||||
ref:
|
|
||||||
- refs/heads/main
|
|
||||||
depends_on:
|
|
||||||
- clone
|
|
||||||
|
|
||||||
- name: build-gitea
|
|
||||||
image: thegeeklab/drone-docker-buildx
|
|
||||||
privileged: true
|
|
||||||
settings:
|
|
||||||
provenance: false
|
|
||||||
registry: git.mrmeeb.stream
|
|
||||||
username:
|
|
||||||
from_secret: docker_username
|
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
repo: git.mrmeeb.stream/mrmeeb/cronicle
|
|
||||||
platforms:
|
|
||||||
- linux/arm64
|
|
||||||
- linux/amd64
|
|
||||||
depends_on:
|
|
||||||
- make-tags
|
|
||||||
|
|
||||||
- name: build-github
|
|
||||||
image: thegeeklab/drone-docker-buildx
|
|
||||||
privileged: true
|
|
||||||
settings:
|
|
||||||
provenance: false
|
|
||||||
registry: ghcr.io
|
|
||||||
username:
|
|
||||||
from_secret: docker_username
|
|
||||||
password:
|
|
||||||
from_secret: github_token
|
|
||||||
repo: ghcr.io/mrmeeb/cronicle
|
|
||||||
platforms:
|
|
||||||
- linux/arm64
|
|
||||||
- linux/amd64
|
|
||||||
depends_on:
|
|
||||||
- make-tags
|
|
||||||
|
|
||||||
- name: notify
|
|
||||||
image: plugins/slack
|
|
||||||
when:
|
|
||||||
status:
|
|
||||||
- success
|
|
||||||
- failure
|
|
||||||
settings:
|
|
||||||
webhook:
|
|
||||||
from_secret: slack_webhook
|
|
||||||
depends_on:
|
|
||||||
- build-github
|
- build-github
|
||||||
- build-gitea
|
- build-gitea
|
||||||
|
|
||||||
|
|||||||
@ -10,7 +10,7 @@ ENV S6_OVERLAY_ARCH=aarch64
|
|||||||
FROM base-${TARGETARCH}${TARGETVARIANT}
|
FROM base-${TARGETARCH}${TARGETVARIANT}
|
||||||
|
|
||||||
ARG S6_OVERLAY_VERSION=3.1.5.0
|
ARG S6_OVERLAY_VERSION=3.1.5.0
|
||||||
ARG CRONICLE_EDGE_VERSION=.1.6.3
|
ARG CRONICLE_EDGE_VERSION=1.6.2
|
||||||
|
|
||||||
ENV CRONICLE_foreground=1
|
ENV CRONICLE_foreground=1
|
||||||
ENV CRONICLE_echo=1
|
ENV CRONICLE_echo=1
|
||||||
|
|||||||
Reference in New Issue
Block a user