Skip to content

Commit

Permalink
Merge pull request #104 from sineverba/fix-circleci-badge
Browse files Browse the repository at this point in the history
Fix circleci badge
  • Loading branch information
sineverba committed Apr 7, 2021
2 parents fa39736 + ebf991b commit a29c0c7
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 30 deletions.
22 changes: 22 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: 2.1
jobs:
test:
docker:
- image: cimg/base:2021.03-20.04
steps:
- checkout
- setup_remote_docker
- run: docker build --tag test-image --file ./docker/Dockerfile .
- run: docker run -it --rm --name cfhookbash test-image | grep "Using main config file /app/dehydrated/config"
- run: docker run -it --rm --name cfhookbash test-image | grep "Registering account"

workflows:
version: 2
tests:
jobs:
- test
#- test:
# filters:
# branches:
# only:
# - develop
7 changes: 0 additions & 7 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ agent:

global_job_config:

prologue:
commands:
- echo $DOCKER_TOKEN | docker login --username "$DOCKER_USERNAME" --password-stdin

env_vars:
- name: DOCKER_USERNAME
value: sineverba
Expand All @@ -31,9 +27,6 @@ blocks:
- docker run -it --rm --name cfhookbash $DOCKER_USERNAME/$DOCKER_IMAGE | grep "Using main config file /app/dehydrated/config"
- docker run -it --rm --name cfhookbash $DOCKER_USERNAME/$DOCKER_IMAGE | grep "Registering account"

secrets:
- name: DOCKER_TOKEN

promotions:
- name: Deploy
pipeline_file: deploy.yml
Expand Down
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# 4.5.0
# Next version
+ Fix Cron output
+ Remove Travis and add Circle CI
+ Enable CircleCI
+ Fix documentation
+ Fix CircleCI badge

## 4.5.0
+ Rearrange instructions (for Docker)
+ Add `linux/arm64` architecture
+ Add date to log
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ Cloudflare dns-01 challenge hook bash for dehydrated
| CD / CI | |
| --------- | --------- |
| Semaphore CI | [![Build Status](https://sineverba.semaphoreci.com/badges/cfhookbash/branches/master.svg)](https://sineverba.semaphoreci.com/projects/cfhookbash) |
| Circle CI | [![CircleCI](https://circleci.com/gh/sineverba/cfhookbash.svg?style=svg)](https://circleci.com/gh/sineverba/cfhookbash) |

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

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

## Docker version

Expand All @@ -21,7 +22,7 @@ If you cannot solve the `HTTP-01` challenge, you need to solve the DNS-01 challe
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.
At the end of Let's Encrypt validation, that record will be deleted.

Depends on `jq`: `sudo apt get install -y jq`
Depends on `jq`: `sudo apt install -y jq`

You only need:

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

``` shell
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"
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
```

#### Update / upgrade
Expand All @@ -135,6 +136,7 @@ Everyone is welcome to contribute! See `CONTRIBUTING.md`
+ Ramblurr
+ Dav999-v
+ fallingcats
+ simondeziel

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

0 comments on commit a29c0c7

Please sign in to comment.