Skip to content

Commit

Permalink
Merge pull request #94 from sineverba/add-date-to-log
Browse files Browse the repository at this point in the history
Add date to log
  • Loading branch information
sineverba committed Feb 7, 2021
2 parents 377e02b + 2970126 commit 1f7580b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .semaphore/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ blocks:
- docker buildx version
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- docker buildx create --name mybuilder && docker buildx use mybuilder && docker buildx inspect --bootstrap
- docker buildx build --platform linux/386,linux/amd64,linux/arm/v6,linux/arm/v7 --tag $DOCKER_USERNAME/$DOCKER_IMAGE:$SEMAPHORE_GIT_TAG_NAME --tag $DOCKER_USERNAME/$DOCKER_IMAGE:latest --file ./docker/Dockerfile . --push
- docker buildx build --platform linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 --tag $DOCKER_USERNAME/$DOCKER_IMAGE:$SEMAPHORE_GIT_TAG_NAME --tag $DOCKER_USERNAME/$DOCKER_IMAGE:latest --file ./docker/Dockerfile . --push
secrets:
- name: DOCKER_TOKEN
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Next version
+ Rearrange instructions (for Docker)
+ Add `linux/arm64` architecture
+ Add date to log

## 4.4.0
+ Remove force renew from Docker
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ build:
docker build --tag sineverba/cfhookbash:latest --file ./docker/Dockerfile .

multi:
docker buildx build --platform linux/386,linux/amd64,linux/arm/v6,linux/arm/v7 --tag sineverba/cfhookbash:latest --file ./docker/Dockerfile . --push
docker buildx build --platform linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 --tag sineverba/cfhookbash:latest --file ./docker/Dockerfile . --push

run:
#docker run -it -v ${PWD}/certs:/certs -v ${PWD}/config:/config --name cfhookbash sineverba/cfhookbash:latest
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Cloudflare dns-01 challenge hook bash for dehydrated

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

## Docker version

For Docker version usage, see [wiki](https://github.com/sineverba/cfhookbash/wiki/Docker-usage)


Expand Down Expand Up @@ -109,7 +111,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.log
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"
```

#### Update / upgrade
Expand Down

0 comments on commit 1f7580b

Please sign in to comment.