Skip to content
This repository was archived by the owner on Jun 15, 2026. It is now read-only.

Commit a29c0c7

Browse files
authored
Merge pull request #104 from sineverba/fix-circleci-badge
Fix circleci badge
2 parents fa39736 + ebf991b commit a29c0c7

5 files changed

Lines changed: 35 additions & 30 deletions

File tree

.circleci/config.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: 2.1
2+
jobs:
3+
test:
4+
docker:
5+
- image: cimg/base:2021.03-20.04
6+
steps:
7+
- checkout
8+
- setup_remote_docker
9+
- run: docker build --tag test-image --file ./docker/Dockerfile .
10+
- run: docker run -it --rm --name cfhookbash test-image | grep "Using main config file /app/dehydrated/config"
11+
- run: docker run -it --rm --name cfhookbash test-image | grep "Registering account"
12+
13+
workflows:
14+
version: 2
15+
tests:
16+
jobs:
17+
- test
18+
#- test:
19+
# filters:
20+
# branches:
21+
# only:
22+
# - develop

.semaphore/semaphore.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ agent:
88

99
global_job_config:
1010

11-
prologue:
12-
commands:
13-
- echo $DOCKER_TOKEN | docker login --username "$DOCKER_USERNAME" --password-stdin
14-
1511
env_vars:
1612
- name: DOCKER_USERNAME
1713
value: sineverba
@@ -31,9 +27,6 @@ blocks:
3127
- docker run -it --rm --name cfhookbash $DOCKER_USERNAME/$DOCKER_IMAGE | grep "Using main config file /app/dehydrated/config"
3228
- docker run -it --rm --name cfhookbash $DOCKER_USERNAME/$DOCKER_IMAGE | grep "Registering account"
3329

34-
secrets:
35-
- name: DOCKER_TOKEN
36-
3730
promotions:
3831
- name: Deploy
3932
pipeline_file: deploy.yml

.travis.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
# 4.5.0
1+
# Next version
2+
+ Fix Cron output
3+
+ Remove Travis and add Circle CI
4+
+ Enable CircleCI
5+
+ Fix documentation
6+
+ Fix CircleCI badge
7+
8+
## 4.5.0
29
+ Rearrange instructions (for Docker)
310
+ Add `linux/arm64` architecture
411
+ Add date to log

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ Cloudflare dns-01 challenge hook bash for dehydrated
44
| CD / CI | |
55
| --------- | --------- |
66
| Semaphore CI | [![Build Status](https://sineverba.semaphoreci.com/badges/cfhookbash/branches/master.svg)](https://sineverba.semaphoreci.com/projects/cfhookbash) |
7+
| Circle CI | [![CircleCI](https://circleci.com/gh/sineverba/cfhookbash.svg?style=svg)](https://circleci.com/gh/sineverba/cfhookbash) |
78

89
**If you like this project, or use it, please, star it!**
910

10-
Cloudflare Bash hook for [dehydrated](https://github.com/lukas2511/dehydrated).
11+
Cloudflare Bash hook for [dehydrated](https://github.com/dehydrated-io/dehydrated).
1112

1213
## Docker version
1314

@@ -21,7 +22,7 @@ If you cannot solve the `HTTP-01` challenge, you need to solve the DNS-01 challe
2122
With use of Cloudflare API (valid also on free plan!), this script will verify your domain putting a new record with a special token inside DNS zone.
2223
At the end of Let's Encrypt validation, that record will be deleted.
2324

24-
Depends on `jq`: `sudo apt get install -y jq`
25+
Depends on `jq`: `sudo apt install -y jq`
2526

2627
You only need:
2728

@@ -111,7 +112,7 @@ Following script will run every monday at 4AM and will create a log in home fold
111112
`$ sudo crontab -e`
112113

113114
``` shell
114-
0 4 * * 1 cd /home/YOUR_USER/dehydrated && /home/YOUR_USER/dehydrated/dehydrated -c -t dns-01 -k '/home/YOUR_USER/cfhookbash/hook.sh' >> /home/YOUR_USER/"cfhookbash-$(date +'%Y-%m-%d-%H-%M-%S').log"
115+
0 4 * * 1 cd /home/<USER>/dehydrated && /home/<USER>/dehydrated/dehydrated -c -t dns-01 -k '/home/<USER>/cfhookbash/hook.sh' >> /home/<USER>/cfhookbash-`date +\%Y-\%m-\%d-\%H-\%M-\%S`.log 2>&1
115116
```
116117

117118
#### Update / upgrade
@@ -135,6 +136,7 @@ Everyone is welcome to contribute! See `CONTRIBUTING.md`
135136
+ Ramblurr
136137
+ Dav999-v
137138
+ fallingcats
139+
+ simondeziel
138140

139141
Inspired by
140142
+ [https://www.splitbrain.org/blog/2017-08/10-homeassistant_duckdns_letsencrypt](https://www.splitbrain.org/blog/2017-08/10-homeassistant_duckdns_letsencrypt)

0 commit comments

Comments
 (0)