mirror of
https://github.com/cmur2/dyndnsd.git
synced 2025-08-08 08:33:56 +02:00
Compare commits
22 Commits
Author | SHA1 | Date | |
---|---|---|---|
d89c1c6091 | |||
2a7ea2bb8f | |||
94823dc041 | |||
![]() |
4c25b9b66b | ||
fb42c57ff1 | |||
![]() |
268e18f2e5 | ||
e8e9e0cb71 | |||
![]() |
8819d6058a | ||
dc325d686e | |||
![]() |
f0aeea96d4 | ||
ff136f7b16 | |||
![]() |
377a6ac179 | ||
![]() |
2cc45e5c0f | ||
19683672d1 | |||
4c1fb5783d | |||
d8f5618006 | |||
e063b6cb4c | |||
![]() |
f64bcc0780 | ||
![]() |
568ea08543 | ||
![]() |
5c16524788 | ||
d1c1a98e47 | |||
d62bf71820 |
2
.github/workflows/cd.yml
vendored
2
.github/workflows/cd.yml
vendored
@@ -13,7 +13,7 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Extract dyndnsd version from tag name
|
||||
run: |
|
||||
echo ::set-env name=DYNDNSD_VERSION::${GITHUB_REF#refs/*/v}
|
||||
echo "DYNDNSD_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
|
||||
# https://github.com/marketplace/actions/build-and-push-docker-images
|
||||
- name: Build and push Docker image for dyndnsd ${{ env.DYNDNSD_VERSION }}
|
||||
uses: docker/build-push-action@v1
|
||||
|
33
.github/workflows/ci.yml
vendored
Normal file
33
.github/workflows/ci.yml
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
name: ci
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
branches: [master]
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '35 4 * * 4' # weekly on thursday morning
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
ruby-version:
|
||||
- '2.5'
|
||||
- '2.6'
|
||||
- '2.7'
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Ruby ${{ matrix.ruby-version }}
|
||||
uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: ${{ matrix.ruby-version }}
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
bundle
|
||||
- name: Test
|
||||
run: |
|
||||
bundle exec rake ci
|
19
.github/workflows/dockerhub.yml
vendored
Normal file
19
.github/workflows/dockerhub.yml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
name: dockerhub
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '7 4 * * 4' # weekly on thursday morning
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
pull-released-dockerimages:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Avoid stale tags by pulling
|
||||
run: |
|
||||
ALL_IMAGES="$(curl -s https://hub.docker.com/v2/repositories/cmur2/dyndnsd/tags?page_size=1000 | jq -r '.results[].name | "cmur2/dyndnsd:" + .' | grep -e 'cmur2/dyndnsd:v')"
|
||||
for image in $ALL_IMAGES; do
|
||||
echo "Pulling $image to avoid staleness..."
|
||||
docker pull "$image"
|
||||
done
|
4
.github/workflows/vulnscan.yml
vendored
4
.github/workflows/vulnscan.yml
vendored
@@ -17,14 +17,14 @@ jobs:
|
||||
- name: Install Trivy
|
||||
run: |
|
||||
mkdir -p $GITHUB_WORKSPACE/bin
|
||||
echo "::add-path::$GITHUB_WORKSPACE/bin"
|
||||
echo "$GITHUB_WORKSPACE/bin" >> "$GITHUB_PATH"
|
||||
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/master/contrib/install.sh | sh -s -- -b $GITHUB_WORKSPACE/bin
|
||||
- name: Download Trivy DB
|
||||
run: |
|
||||
trivy image --download-db-only
|
||||
- name: Scan vulnerabilities using Trivy
|
||||
env:
|
||||
TRIVY_SKIP_DIRS: '/usr/lib/ruby/gems/2.7.0/gems/jaeger-client-0.10.0/crossdock,/usr/lib/ruby/gems/2.7.0/gems/jaeger-client-1.0.0/crossdock'
|
||||
TRIVY_SKIP_DIRS: 'usr/lib/ruby/gems/2.7.0/gems/jaeger-client-0.10.0/crossdock,usr/lib/ruby/gems/2.7.0/gems/jaeger-client-1.0.0/crossdock,usr/lib/ruby/gems/2.7.0/gems/jaeger-client-1.1.0/crossdock'
|
||||
run: |
|
||||
trivy --version
|
||||
|
||||
|
13
.travis.yml
13
.travis.yml
@@ -1,13 +0,0 @@
|
||||
---
|
||||
os: linux
|
||||
language: ruby
|
||||
rvm:
|
||||
- 2.7
|
||||
- 2.6
|
||||
- 2.5
|
||||
|
||||
services:
|
||||
- docker
|
||||
|
||||
script:
|
||||
- bundle exec rake travis
|
15
CHANGELOG.md
15
CHANGELOG.md
@@ -1,6 +1,19 @@
|
||||
# Changelog
|
||||
|
||||
## 3.1.1 (october 3, 2020)
|
||||
## 3.1.3 (December 20, 2020)
|
||||
|
||||
OTHER:
|
||||
|
||||
- fix Docker image release process in Github Actions CI, 3.1.2 was not released as a Docker image
|
||||
|
||||
## 3.1.2 (December 20, 2020)
|
||||
|
||||
OTHER:
|
||||
|
||||
- fixes vulnerabilities in Docker image by using updated Alpine base image
|
||||
- start using Github Actions CI for tests and drop Travis CI
|
||||
|
||||
## 3.1.1 (October 3, 2020)
|
||||
|
||||
IMPROVEMENTS:
|
||||
|
||||
|
2
Gemfile
2
Gemfile
@@ -3,3 +3,5 @@
|
||||
source 'https://rubygems.org'
|
||||
|
||||
gemspec
|
||||
|
||||
gem 'solargraph', git: 'https://github.com/zaratan/solargraph.git', branch: 'fix_rubocop_1_0'
|
||||
|
@@ -1,6 +1,6 @@
|
||||
# dyndnsd.rb
|
||||
|
||||
[](https://travis-ci.org/cmur2/dyndnsd) [](https://depfu.com/github/cmur2/dyndnsd)
|
||||
 [](https://depfu.com/github/cmur2/dyndnsd)
|
||||
|
||||
A small, lightweight and extensible DynDNS server written with Ruby and Rack.
|
||||
|
||||
|
2
Rakefile
2
Rakefile
@@ -28,4 +28,4 @@ end
|
||||
|
||||
task default: [:rubocop, :spec, 'bundle:audit', :solargraph]
|
||||
|
||||
task travis: ['solargraph:init', :default, :hadolint]
|
||||
task ci: ['solargraph:init', :default, :hadolint]
|
||||
|
@@ -40,6 +40,6 @@ Gem::Specification.new do |s|
|
||||
s.add_development_dependency 'rack-test'
|
||||
s.add_development_dependency 'rake'
|
||||
s.add_development_dependency 'rspec'
|
||||
s.add_development_dependency 'rubocop', '~> 0.92.0'
|
||||
s.add_development_dependency 'solargraph'
|
||||
s.add_development_dependency 'rubocop', '~> 1.6.1'
|
||||
# s.add_development_dependency 'solargraph', '~> 0.39.0'
|
||||
end
|
||||
|
@@ -60,7 +60,7 @@ module Dyndnsd
|
||||
message: e.message,
|
||||
stack: e.backtrace&.join("\n") || ''
|
||||
)
|
||||
raise
|
||||
raise e
|
||||
ensure
|
||||
scope.close
|
||||
end
|
||||
|
@@ -18,7 +18,7 @@ module Dyndnsd
|
||||
|
||||
@registry = options[:registry] || Metriks::Registry.default
|
||||
@interval = options[:interval] || 60
|
||||
@on_error = options[:on_error] || proc { |ex| }
|
||||
@on_error = options[:on_error] || proc { |ex| } # default: ignore errors
|
||||
end
|
||||
|
||||
# @return [void]
|
||||
|
@@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Dyndnsd
|
||||
VERSION = '3.1.1'
|
||||
VERSION = '3.1.3'
|
||||
end
|
||||
|
Reference in New Issue
Block a user