Skip to content

Commit

Permalink
Add v0.0.1 release notes (#57)
Browse files Browse the repository at this point in the history
Signed-off-by: masteryyh <yyh991013@163.com>
  • Loading branch information
masteryyh committed Jan 8, 2025
1 parent 3883219 commit 59ba33b
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 33 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ jobs:
run: |
VERSION=${{ github.ref_name }} ./build.sh
- name: Build tarball for each platform
if: startsWith(github.ref, 'refs/tags/v')
run: |
VERSION=${{ github.ref_name }} ./package.sh
- name: Build binary without tag
if: ${{ ! startsWith(github.ref, 'refs/tags/v') }}
run: |
Expand Down Expand Up @@ -99,7 +104,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/v')
run: |
gh release create ${{ github.ref_name }} \
-F docs/notes/release-${{ github.ref_name }}.md
output/*.tar.gz*
-F docs/notes/release-${{ github.ref_name }}.md \
output/*
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43 changes: 22 additions & 21 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Please include a short and precise description about what you have done in the c

We strongly recommend use GPG to sign your commit, and add a sign-off message after your commit message. We enabled vigilant mode so we can make sure that all commits are committed by yourself.

```
$ git commit -s -S -m "what-i-have-done"
```bash
git commit -s -S -m "what-i-have-done"
```

For now we don't force contributors to sign their commits, but in the future we might refuse Pull Requests that commits are not signed.
Expand All @@ -25,7 +25,8 @@ For now we don't force contributors to sign their commits, but in the future we
1. We indent using Tab, you can choose any tab size you want when you browsing or writing code, but always choose Tab for indent;

2. All Go source files must add an Apache 2.0 license header comment, you can add your name and email under `Contributors` section like this:
```

```plaintext
/*
Copyright © 2024 masteryyh <yyh991013@163.com>
Expand All @@ -37,7 +38,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
Expand All @@ -59,43 +60,43 @@ limitations under the License.

3. How to generate or use your existing GPG key:

- [Generating a new GPG key](https://docs.github.com/en/authentication/managing-commit-signature-verification/generating-a-new-gpg-key)
- [Checking for existing GPG keys](https://docs.github.com/en/authentication/managing-commit-signature-verification/checking-for-existing-gpg-keys)
- [Generating a new GPG key](https://docs.github.com/en/authentication/managing-commit-signature-verification/generating-a-new-gpg-key)

- [Checking for existing GPG keys](https://docs.github.com/en/authentication/managing-commit-signature-verification/checking-for-existing-gpg-keys)

- [Adding a GPG key to your GitHub account](https://docs.github.com/en/authentication/managing-commit-signature-verification/adding-a-gpg-key-to-your-github-account)
- [Adding a GPG key to your GitHub account](https://docs.github.com/en/authentication/managing-commit-signature-verification/adding-a-gpg-key-to-your-github-account)

- [Telling Git about your signing key](https://docs.github.com/en/authentication/managing-commit-signature-verification/telling-git-about-your-signing-key)
- [Telling Git about your signing key](https://docs.github.com/en/authentication/managing-commit-signature-verification/telling-git-about-your-signing-key)

- [Signing commits](https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits)
- [Signing commits](https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits)

### DNS provider documentations

- AliCloud:

- API: https://www.alibabacloud.com/help/en/dns/api-alidns-2015-01-09-overview
- SDK: https://next.api.aliyun.com/api-tools/sdk/Alidns?version=2015-01-09&language=java-async-tea&tab=primer-doc
- API: <https://www.alibabacloud.com/help/en/dns/api-alidns-2015-01-09-overview>
- SDK: <https://next.api.aliyun.com/api-tools/sdk/Alidns?version=2015-01-09&language=java-async-tea&tab=primer-doc>

- Cloudflare:

- API: https://developers.cloudflare.com/api/
- SDK: https://developers.cloudflare.com/fundamentals/api/reference/sdks/
- API: <https://developers.cloudflare.com/api/>
- SDK: <https://developers.cloudflare.com/fundamentals/api/reference/sdks/>

- DNSPod:

- API: https://cloud.tencent.com/document/api/1427/56194
- SDK: https://cloud.tencent.com/document/sdk/Go
- API: <https://cloud.tencent.com/document/api/1427/56194>
- SDK: <https://cloud.tencent.com/document/sdk/Go>

- HuaweiCloud:

- API: https://console.huaweicloud.com/apiexplorer/#/openapi/DNS/doc
- SDK: https://console.huaweicloud.com/apiexplorer/#/sdkcenter/DNS?lang=Go
- API: <https://console.huaweicloud.com/apiexplorer/#/openapi/DNS/doc>
- SDK: <https://console.huaweicloud.com/apiexplorer/#/sdkcenter/DNS?lang=Go>

- JDCloud:

- API: https://docs.jdcloud.com/cn/jd-cloud-dns/api/introduction
- SDK: https://docs.jdcloud.com/cn/sdk/go
- API: <https://docs.jdcloud.com/cn/jd-cloud-dns/api/introduction>
- SDK: <https://docs.jdcloud.com/cn/sdk/go>

- RFC2136:

As RFC2136 is actually a standard, not a DNS provider, we can only provide IETF documentation about this: https://datatracker.ietf.org/doc/html/rfc2136
As RFC2136 is actually a standard, not a DNS provider, we can only provide IETF documentation about this: <https://datatracker.ietf.org/doc/html/rfc2136>
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
## micro-ddns
# micro-ddns

micro-ddns is a tool that can update your DNS record
dynamically based on current IP address, support multiple
IP address detection methods and DNS providers.

## Quick Start

```yaml
# /etc/micro-ddns/config.yaml
ddns:
Expand All @@ -26,17 +28,18 @@ provider:
apiToken: "<redacted>"
```
```
$ micro-ddns run --config /etc/micro-ddns/config.yaml
```bash
micro-ddns run --config /etc/micro-ddns/config.yaml
```

OR you can run as a container:

```
$ docker run --name ddns -d -v /path/to/config.yaml:/etc/micro-ddns/config.yaml masteryyh/micro-ddns:alpine
```bash
docker run --name ddns -d -v /path/to/config.yaml:/etc/micro-ddns/config.yaml masteryyh/micro-ddns:alpine
```

## License

This project is licensed under the Apache License 2.0. For more details, see the LICENSE file in the repository.

Copyright (c) 2024 masteryyh
Expand Down
22 changes: 22 additions & 0 deletions docs/notes/release-v0.0.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# micro-ddns v0.0.1 Release Notes

This is the first release of micro-ddns!

## Supported DNS Providers

- [x] [Cloudflare](https://www.cloudflare.com/)
- [x] [AliCloud](https://www.aliyun.com/)
- [x] [DNSPod](https://www.dnspod.cn/)
- [x] [HuaweiCloud](https://www.huaweicloud.com/)
- [x] [JDCloud](https://www.jdcloud.com/)
- [x] [RFC2136 (experimental)](https://datatracker.ietf.org/doc/html/rfc2136)

## Supported Address Detection Methods

- [x] Interface
- [x] 3rd Party API
- [x] SSH

## Known Issues

- When using AliCloud DNS provider, you may encounter the following error: "You can’t finish this operation because the last operation has not been finished". You can try to wait for next DNS update and its not always reproducible.
3 changes: 1 addition & 2 deletions internal/cli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ var (
Short: "A simple tool to update DNS dynamically",
Long: `A simple tool to update DNS dynamically if you want to create DNS records
for hosts that IP address might changes. Support multiple DNS providers.
Still under construction. ;)`,
`,
}
)

Expand Down
8 changes: 5 additions & 3 deletions package.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ create_package() {
local version=$3

echo "Packing for OS $os and arch $arch..."
local path="output/$os/$arch"
local path="output/micro-ddns-$os-$arch"
if [ ! -d "$path" ]; then
mkdir -p "output/$os/$arch"
mkdir -p "$path"
fi

local binary="bin/micro-ddns-${os}-${arch}"
Expand All @@ -33,7 +33,7 @@ create_package() {
fi

local tar_name="output/micro-ddns-${os}-${arch}-$version.tar.gz"
tar -czf "$tar_name" "output/$os/$arch"
tar -czf "$tar_name" -C "$path" .
sha256sum "$tar_name" > "$tar_name.sha256"
}

Expand All @@ -53,3 +53,5 @@ do
create_package "${os_arch[0]}" "${os_arch[1]}" "$VERSION" &
done
wait

rm -rf output/*/

0 comments on commit 59ba33b

Please sign in to comment.