Compare commits
32 Commits
1.0.3
...
2706c094d6
| Author | SHA1 | Date | |
|---|---|---|---|
| 2706c094d6 | |||
| ada0034f7f | |||
| fa39f8b7d4 | |||
| 1920c68eba | |||
| d293cbaef9 | |||
| 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 |
168
.drone.yml
168
.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,100 +19,11 @@ steps:
|
|||||||
image: docker:git
|
image: docker:git
|
||||||
commands:
|
commands:
|
||||||
- git fetch --tags
|
- git fetch --tags
|
||||||
depends_on:
|
|
||||||
- clone
|
|
||||||
|
|
||||||
- name: make-tags
|
|
||||||
image: node
|
|
||||||
commands:
|
|
||||||
- echo -n "${DRONE_TAG}, latest" > .tags
|
|
||||||
depends_on:
|
|
||||||
- get-tags
|
|
||||||
|
|
||||||
- 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: release-gitea
|
|
||||||
image: goreleaser/goreleaser
|
|
||||||
environment:
|
|
||||||
GITEA_TOKEN:
|
|
||||||
from_secret: gitea_token
|
|
||||||
commands:
|
|
||||||
- goreleaser release -f .goreleaser-gitea.yaml
|
|
||||||
depends_on:
|
|
||||||
- build-gitea
|
|
||||||
|
|
||||||
- name: release-github
|
|
||||||
image: goreleaser/goreleaser
|
|
||||||
environment:
|
|
||||||
GITHUB_TOKEN:
|
|
||||||
from_secret: github_token
|
|
||||||
commands:
|
|
||||||
- goreleaser release -f .goreleaser-github.yaml
|
|
||||||
depends_on:
|
|
||||||
- build-github
|
|
||||||
|
|
||||||
- name: notify
|
|
||||||
image: plugins/slack
|
|
||||||
when:
|
when:
|
||||||
status:
|
ref:
|
||||||
- success
|
- refs/tags/**
|
||||||
- failure
|
|
||||||
settings:
|
|
||||||
webhook:
|
|
||||||
from_secret: slack_webhook
|
|
||||||
depends_on:
|
|
||||||
- release-gitea
|
|
||||||
- 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:
|
|
||||||
|
|
||||||
|
# Set tags for main branch
|
||||||
- name: make-tags
|
- name: make-tags
|
||||||
image: node
|
image: node
|
||||||
commands:
|
commands:
|
||||||
@ -119,10 +31,17 @@ steps:
|
|||||||
when:
|
when:
|
||||||
ref:
|
ref:
|
||||||
- refs/heads/main
|
- refs/heads/main
|
||||||
depends_on:
|
|
||||||
- clone
|
|
||||||
|
|
||||||
- name: build-gitea
|
- name: make-tags-release
|
||||||
|
image: node
|
||||||
|
commands:
|
||||||
|
- echo -n "${DRONE_TAG}, latest" > .tags
|
||||||
|
when:
|
||||||
|
ref:
|
||||||
|
- refs/tags/**
|
||||||
|
|
||||||
|
# Build containers from main branch
|
||||||
|
- name: build
|
||||||
image: thegeeklab/drone-docker-buildx
|
image: thegeeklab/drone-docker-buildx
|
||||||
privileged: true
|
privileged: true
|
||||||
settings:
|
settings:
|
||||||
@ -136,25 +55,17 @@ steps:
|
|||||||
platforms:
|
platforms:
|
||||||
- linux/arm64
|
- linux/arm64
|
||||||
- linux/amd64
|
- linux/amd64
|
||||||
depends_on:
|
|
||||||
- make-tags
|
|
||||||
|
|
||||||
- name: build-github
|
- name: release
|
||||||
image: thegeeklab/drone-docker-buildx
|
image: goreleaser/goreleaser
|
||||||
privileged: true
|
environment:
|
||||||
settings:
|
GITEA_TOKEN:
|
||||||
provenance: false
|
from_secret: gitea_token
|
||||||
registry: ghcr.io
|
commands:
|
||||||
username:
|
- goreleaser release
|
||||||
from_secret: docker_username
|
when:
|
||||||
password:
|
ref:
|
||||||
from_secret: github_token
|
- refs/tags/**
|
||||||
repo: ghcr.io/mrmeeb/cronicle
|
|
||||||
platforms:
|
|
||||||
- linux/arm64
|
|
||||||
- linux/amd64
|
|
||||||
depends_on:
|
|
||||||
- make-tags
|
|
||||||
|
|
||||||
- name: notify
|
- name: notify
|
||||||
image: plugins/slack
|
image: plugins/slack
|
||||||
@ -165,9 +76,6 @@ steps:
|
|||||||
settings:
|
settings:
|
||||||
webhook:
|
webhook:
|
||||||
from_secret: slack_webhook
|
from_secret: slack_webhook
|
||||||
depends_on:
|
|
||||||
- build-github
|
|
||||||
- build-gitea
|
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
@ -192,7 +100,7 @@ steps:
|
|||||||
- echo -n "develop-${DRONE_COMMIT_SHA:0:8}, develop" > .tags
|
- echo -n "develop-${DRONE_COMMIT_SHA:0:8}, develop" > .tags
|
||||||
|
|
||||||
# Build containers from develop branch
|
# Build containers from develop branch
|
||||||
- name: build-gitea
|
- name: build
|
||||||
image: thegeeklab/drone-docker-buildx
|
image: thegeeklab/drone-docker-buildx
|
||||||
privileged: true
|
privileged: true
|
||||||
settings:
|
settings:
|
||||||
@ -206,25 +114,6 @@ steps:
|
|||||||
platforms:
|
platforms:
|
||||||
- linux/arm64
|
- linux/arm64
|
||||||
- linux/amd64
|
- 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
|
- name: notify
|
||||||
image: plugins/slack
|
image: plugins/slack
|
||||||
@ -234,7 +123,4 @@ steps:
|
|||||||
- failure
|
- failure
|
||||||
settings:
|
settings:
|
||||||
webhook:
|
webhook:
|
||||||
from_secret: slack_webhook
|
from_secret: slack_webhook
|
||||||
depends_on:
|
|
||||||
- build-gitea
|
|
||||||
- build-github
|
|
||||||
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,2 @@
|
|||||||
dist-gitea/
|
dist/
|
||||||
dist-github/
|
|
||||||
.tags
|
.tags
|
||||||
@ -1,20 +0,0 @@
|
|||||||
dist: dist-github
|
|
||||||
|
|
||||||
build:
|
|
||||||
skip: true
|
|
||||||
|
|
||||||
archives:
|
|
||||||
- format: binary
|
|
||||||
|
|
||||||
release:
|
|
||||||
draft: true
|
|
||||||
github:
|
|
||||||
owner: MrMeeb
|
|
||||||
name: cronicle-docker
|
|
||||||
|
|
||||||
changelog:
|
|
||||||
sort: asc
|
|
||||||
filters:
|
|
||||||
exclude:
|
|
||||||
- '^docs:'
|
|
||||||
- '^test:'
|
|
||||||
@ -1,5 +1,3 @@
|
|||||||
dist: dist-gitea
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
skip: true
|
skip: true
|
||||||
|
|
||||||
@ -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
|
||||||
|
|||||||
@ -8,7 +8,7 @@ This container can function in both the **manager** and **worker** role.
|
|||||||
|
|
||||||
## Links
|
## Links
|
||||||
- :tea: [Gitea Repo (source)](https://git.mrmeeb.stream/MrMeeb/cronicle-docker)
|
- :tea: [Gitea Repo (source)](https://git.mrmeeb.stream/MrMeeb/cronicle-docker)
|
||||||
- :whale2: [Containers](https://git.mrmeeb.stream/MrMeeb/-/packages/container/cronicle/latest) (also published to GHCR)
|
- :whale2: [Containers](https://git.mrmeeb.stream/MrMeeb/-/packages/container/cronicle/latest) - since I'm currently not also publishing them to ghcr.io
|
||||||
- :mirror: [GitHub mirror](https://github.com/MrMeeb/cronicle-docker)
|
- :mirror: [GitHub mirror](https://github.com/MrMeeb/cronicle-docker)
|
||||||
- :package: [Cronicle Repo](https://github.com/jhuckaby/Cronicle)
|
- :package: [Cronicle Repo](https://github.com/jhuckaby/Cronicle)
|
||||||
- :package: [Cronicle-Edge Repo](https://github.com/cronicle-edge/cronicle-edge)
|
- :package: [Cronicle-Edge Repo](https://github.com/cronicle-edge/cronicle-edge)
|
||||||
|
|||||||
Reference in New Issue
Block a user