diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index aae9b4d..105cd5a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -18,7 +18,7 @@ jobs: - uses: actions/setup-go@v2 with: - go-version: 1.17.6 + go-version: 1.17.8 - name: Prepare environment run: |- @@ -45,6 +45,7 @@ jobs: - run: GOOS=linux GOARCH=amd64 VERSION=${RELEASE_VERSION} make release # Linux ARM + - run: GOOS=linux GOARCH=arm GOARM=5 VERSION=${RELEASE_VERSION} make release - run: GOOS=linux GOARCH=arm GOARM=6 VERSION=${RELEASE_VERSION} make release - run: GOOS=linux GOARCH=arm64 VERSION=${RELEASE_VERSION} make release diff --git a/LICENSE b/LICENSE index 44b80db..b2b8aad 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2016-2021 honwen +Copyright (c) 2016-2022 honwen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index ca1064d..f9b998b 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ ### Usage -```bash +```shell $ docker pull chenhw2/aliyun-ddns-cli $ docker run -d \ @@ -30,7 +30,7 @@ $ docker run -d \ ### Help -``` +```shell $ docker run --rm chenhw2/aliyun-ddns-cli -h NAME: aliddns - aliyun-ddns-cli @@ -65,7 +65,7 @@ GLOBAL OPTIONS: ### CLI Example: -``` +```shell aliddns --id ${AccessKeyID} --secret ${AccessKeySecret} \ auto-update --domain ddns.example.win diff --git a/go.mod b/go.mod index a9834f0..baed7d4 100644 --- a/go.mod +++ b/go.mod @@ -1,11 +1,35 @@ module github.com/honwen/aliyun-ddns-cli -go 1.16 +go 1.17 require ( - github.com/denverdino/aliyungo v0.0.0-20211216041018-95e021eb8eb7 + github.com/denverdino/aliyungo v0.0.0-20220218060649-7450266b1c04 github.com/honwen/golibs v0.2.5 github.com/honwen/ip2loc v0.2.0 github.com/stretchr/testify v1.7.0 github.com/urfave/cli v1.22.5 ) + +require ( + github.com/AdguardTeam/golibs v0.4.2 // indirect + github.com/PuerkitoBio/goquery v1.7.1 // indirect + github.com/Workiva/go-datastructures v1.0.53 // indirect + github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da // indirect + github.com/aead/poly1305 v0.0.0-20180717145839-3fee0db0b635 // indirect + github.com/ameshkov/dnscrypt/v2 v2.2.1 // indirect + github.com/ameshkov/dnsstamps v1.0.3 // indirect + github.com/andybalholm/cascadia v1.2.0 // indirect + github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/miekg/dns v1.1.43 // indirect + github.com/mr-karan/doggo v0.4.1 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/rakyll/statik v0.1.7 // indirect + github.com/russross/blackfriday/v2 v2.0.1 // indirect + github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect + github.com/sirupsen/logrus v1.7.0 // indirect + golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 // indirect + golang.org/x/net v0.0.0-20210614182718-04defd469f4e // indirect + golang.org/x/sys v0.0.0-20210423082822-04245dca01da // indirect + gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect +) diff --git a/go.sum b/go.sum index c587431..0b7ff1d 100644 --- a/go.sum +++ b/go.sum @@ -21,8 +21,8 @@ github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:ma github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/denverdino/aliyungo v0.0.0-20211216041018-95e021eb8eb7 h1:3x/qbhudvljDh48e2LORoL0Id2mXG7GkcK0rSf3qdHA= -github.com/denverdino/aliyungo v0.0.0-20211216041018-95e021eb8eb7/go.mod h1:VVxx1gyGhdt369208nKOYLI0PVgrZqbU+EuWBZJQ1ZQ= +github.com/denverdino/aliyungo v0.0.0-20220218060649-7450266b1c04 h1:cM8K5uXYMxNMmoh1ogXr/aa3LtbT7pvWQhQLOqpTM84= +github.com/denverdino/aliyungo v0.0.0-20220218060649-7450266b1c04/go.mod h1:VVxx1gyGhdt369208nKOYLI0PVgrZqbU+EuWBZJQ1ZQ= github.com/fatih/color v1.10.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM= github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=