Compare commits
21 Commits
613393f328
...
1.0.0
| Author | SHA1 | Date | |
|---|---|---|---|
| 96bdd83385 | |||
| 7d94621192 | |||
| b5d80d90a0 | |||
| 06f5e5d27a | |||
| 3f239e2527 | |||
| 056748f20c | |||
| d4846a0ccf | |||
| 52460f8741 | |||
| d1c1cfd46f | |||
| bfd684f06f | |||
| c6007e71f8 | |||
| 4485b53801 | |||
| 0f96656929 | |||
| 74a1e3f206 | |||
| a611ceff70 | |||
| 7f98dc08ce | |||
| 8cc55e3bf8 | |||
| 6c6395097f | |||
| 821dbf140c | |||
| 22f4727800 | |||
| 113839c359 |
40
.drone.yml
40
.drone.yml
@ -1,11 +1,12 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: build-release-images
|
||||
name: build-main-images
|
||||
trigger:
|
||||
event:
|
||||
exclude:
|
||||
- pull_request
|
||||
ref:
|
||||
- refs/heads/main
|
||||
- refs/tags/**
|
||||
|
||||
platform:
|
||||
@ -13,14 +14,34 @@ platform:
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
# Set tags for main branch - release tag and 'latest'
|
||||
- name: make-tags-main
|
||||
|
||||
- name: get-tags
|
||||
image: docker:git
|
||||
commands:
|
||||
- git fetch --tags
|
||||
when:
|
||||
ref:
|
||||
- refs/tags/**
|
||||
|
||||
# Set tags for main branch
|
||||
- name: make-tags
|
||||
image: node
|
||||
commands:
|
||||
- echo -n "${DRONE_COMMIT_SHA:0:8}, latest" > .tags
|
||||
when:
|
||||
ref:
|
||||
- refs/heads/main
|
||||
|
||||
- name: make-tags-release
|
||||
image: node
|
||||
commands:
|
||||
- echo -n "${DRONE_TAG}, latest" > .tags
|
||||
when:
|
||||
ref:
|
||||
- refs/tags/**
|
||||
|
||||
# Build containers from main branch when released
|
||||
- name: build-main
|
||||
# Build containers from main branch
|
||||
- name: build
|
||||
image: thegeeklab/drone-docker-buildx
|
||||
privileged: true
|
||||
settings:
|
||||
@ -42,6 +63,9 @@ steps:
|
||||
from_secret: gitea_token
|
||||
commands:
|
||||
- goreleaser release
|
||||
when:
|
||||
ref:
|
||||
- refs/tags/**
|
||||
|
||||
- name: notify
|
||||
image: plugins/slack
|
||||
@ -70,13 +94,13 @@ platform:
|
||||
|
||||
steps:
|
||||
# Set tags for develop branch - git commit SHA and 'develop'
|
||||
- name: make-tags-develop
|
||||
- name: make-tags
|
||||
image: node
|
||||
commands:
|
||||
- echo -n "${DRONE_COMMIT_SHA:0:8}, develop" > .tags
|
||||
- echo -n "develop-${DRONE_COMMIT_SHA:0:8}, develop" > .tags
|
||||
|
||||
# Build containers from develop branch
|
||||
- name: build-develop
|
||||
- name: build
|
||||
image: thegeeklab/drone-docker-buildx
|
||||
privileged: true
|
||||
settings:
|
||||
|
||||
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
dist/
|
||||
.tags
|
||||
13
README.md
13
README.md
@ -1,9 +1,20 @@
|
||||
# Cronicle Docker
|
||||
|
||||
 
|
||||
|
||||
Dockerised Cronicle, based on the [Cronicle-Edge](https://github.com/cronicle-edge/cronicle-edge) fork.
|
||||
|
||||
Can function in both the **manager** and **worker** role.
|
||||
|
||||
## Tags
|
||||
|
||||
|Tag |Description|
|
||||
|-------|-----------|
|
||||
|latest |Latest image built from the main branch. Usually coincides with a tagged release.|
|
||||
|develop|Latest image built from the develop branch. Commits are made to the develop branch before being merged to main. Old versions of `develop` are removed after 14 days.|
|
||||
|
||||
Tags relating to releases are also available, for locking in on a specific version.
|
||||
|
||||
## Running
|
||||
|
||||
`config.json`, located in `/config/cronicle/conf/config.json`, is automatically generated on the first run of Cronicle in 'manager' mode. This file must be kept identical between the manager and any workers it controls.
|
||||
@ -68,4 +79,4 @@ This container automatically checks for scripts in `/config/init` and runs them
|
||||
|MODE |manager, worker|manager|Determines what mode Cronicle runs in
|
||||
|PUID |int |1000 |Sets the UID of the user Cronicle runs under
|
||||
|PGID |int |1000 |Sets the GID of the user Cronicle runs under
|
||||
|TZ |[List of valid TZs](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List) |UTC |Sets the timezone of the container and by extension Cronicle
|
||||
|TZ |[List of valid TZs](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List) |UTC |Sets the timezone of the container and by extension Cronicle
|
||||
|
||||
Reference in New Issue
Block a user