Compare commits

..

1 commit

Author SHA1 Message Date
Jan Christian Grünhage 5f25f85a5e chore: fork and rename
I'm forking this, with the following changes:
 - daemon instead of CLI tool run via cron
 - mandatory config file
 - use cloudflare crate instead of home grown API client
 - IPv6 support
 - CNPLv6+ licensed instead of MIT licensed
2021-05-23 15:33:28 +02:00
4 changed files with 0 additions and 161 deletions

View file

@ -1,22 +0,0 @@
on: push
name: Build
jobs:
build_and_test:
name: Build cloudflare-ddns
runs-on: ubuntu-latest
steps:
- name: Checkout latest
uses: actions/checkout@master
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: Cargo build
uses: actions-rs/cargo@v1
with:
toolchain: nightly
command: build
args: --release

View file

@ -1,88 +0,0 @@
on:
push:
tags:
- '*.*.*'
name: Publish
jobs:
build:
name: Build
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@master
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: Cargo build
uses: actions-rs/cargo@v1
with:
toolchain: nightly
command: build
args: --release
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)
- name: Archive binary
run: tar cfJ cloudflare-ddns-${{ matrix.os }}-${{ steps.get_version.outputs.VERSION }}.tar.xz target/release/cloudflare-ddns
- name: Save archived binary as an artifact
uses: actions/upload-artifact@v1
with:
name: binary-${{ matrix.os }}-${{ steps.get_version.outputs.VERSION }}
path: cloudflare-ddns-${{ matrix.os }}-${{ steps.get_version.outputs.VERSION }}.tar.xz
create_github_release:
name: Prepare a GitHub release
runs-on: ubuntu-latest
needs: build
steps:
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)
- name: Download macOS binary archive
uses: actions/download-artifact@v1
with:
name: binary-macOS-latest-${{ steps.get_version.outputs.VERSION }}
path: cloudflare-ddns-macOS-${{ steps.get_version.outputs.VERSION }}.tar.xz
- name: Download Linux binary archive
uses: actions/download-artifact@v1
with:
name: binary-ubuntu-latest-${{ steps.get_version.outputs.VERSION }}
path: cloudflare-ddns-ubuntu-${{ steps.get_version.outputs.VERSION }}.tar.xz
- name: Create release
uses: softprops/action-gh-release@v1
with:
name: cloudflare-ddns v${{ steps.get_version.outputs.VERSION }}
files: |
LICENSE
cloudflare-ddns-macOS-${{ steps.get_version.outputs.VERSION }}.tar.xz
cloudflare-ddns-ubuntu-${{ steps.get_version.outputs.VERSION }}.tar.xz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish_crate:
name: Publish cloudflare-ddns to crates.io
runs-on: ubuntu-latest
steps:
- name: Checkout latest master
uses: actions/checkout@master
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: Login to crates.io
uses: actions-rs/cargo@v1
with:
toolchain: nightly
command: login
args: ${{ secrets.CRATES_TOKEN }}
- name: Publish to crates.io
uses: actions-rs/cargo@v1
with:
toolchain: nightly
command: publish

1
.gitignore vendored
View file

@ -1,3 +1,2 @@
/target
**/*.rs.bk
.envrc

50
.vscode/launch.json vendored
View file

@ -1,50 +0,0 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.3.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug 'cloudflare-ddns'",
"cargo": {
"args": [
"build",
"--bin=cloudflare-ddns",
"--package=cloudflare-ddns"
],
"filter": {
"name": "cloudflare-ddns",
"kind": "bin"
}
},
"args": [
"--key=${env:DDNS_AUTH_KEY}",
"--domain=${env:DOMAIN}",
"--email=${env:EMAIL}",
"--zone=${env:ZONE}"
],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in 'cloudflare-ddns'",
"cargo": {
"args": [
"test",
"--no-run",
"--bin=cloudflare-ddns",
"--package=cloudflare-ddns"
],
"filter": {
"name": "cloudflare-ddns",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
}
]
}