diff --git a/.github/workflows/docker-ghcr.yml b/.github/workflows/docker-ghcr.yml index 4aedde1..8d4a901 100644 --- a/.github/workflows/docker-ghcr.yml +++ b/.github/workflows/docker-ghcr.yml @@ -60,15 +60,19 @@ jobs: # https://github.com/docker/metadata-action - name: Extract Docker metadata id: meta - uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 + uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: | + type=ref,event=branch + type=semver,pattern={{version}} + type=raw,value=latest,enable={{is_default_branch}} # Build and push Docker image with Buildx (don't push on PR) # https://github.com/docker/build-push-action - name: Build and push Docker image id: build-and-push - uses: docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a + uses: docker/build-push-action@v5 with: context: . push: ${{ github.event_name != 'pull_request' }} diff --git a/Dockerfile b/Dockerfile index b93ef39..972e1e3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ruby:3.2.2 +FROM ruby:3.3.0 RUN mkdir /app WORKDIR /app diff --git a/Gemfile b/Gemfile index 417bb94..1550546 100644 --- a/Gemfile +++ b/Gemfile @@ -4,7 +4,7 @@ gem 'colorize' gem 'concurrent-ruby-edge' gem 'json' gem 'nokogiri' -gem 'open-uri' +gem 'open-uri', '>= 0.4.0' gem 'set' gem 'sitemap-parser' gem 'thor' diff --git a/Gemfile.lock b/Gemfile.lock index 766a162..1e8a372 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -5,7 +5,7 @@ GEM concurrent-ruby (1.1.10) concurrent-ruby-edge (0.6.0) concurrent-ruby (~> 1.1.6) - date (3.2.2) + date (3.3.4) ethon (0.15.0) ffi (>= 1.15.0) ffi (1.15.5) @@ -14,7 +14,7 @@ GEM nokogiri (1.13.8) mini_portile2 (~> 2.8.0) racc (~> 1.4) - open-uri (0.2.0) + open-uri (0.4.1) stringio time uri @@ -23,16 +23,17 @@ GEM sitemap-parser (0.5.6) nokogiri (~> 1.6) typhoeus (>= 0.6, < 2.0) - stringio (3.0.2) + stringio (3.1.0) thor (1.2.1) - time (0.2.0) + time (0.3.0) date typhoeus (1.4.0) ethon (>= 0.9.0) - uri (0.11.0) + uri (0.13.0) PLATFORMS arm64-darwin-22 + arm64-darwin-23 x86_64-darwin-21 DEPENDENCIES @@ -40,7 +41,7 @@ DEPENDENCIES concurrent-ruby-edge json nokogiri - open-uri + open-uri (>= 0.4.0) set sitemap-parser thor diff --git a/README.md b/README.md index 37ca754..fa781ab 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ deadfinder sitemap https://www.hahwul.com/sitemap.xml ```yml steps: - name: Run DeadFinder - uses: hahwul/deadfinder@1.3.1 + uses: hahwul/deadfinder@1.3.4 id: broken-link with: command: sitemap diff --git a/github-action/Dockerfile b/github-action/Dockerfile index 3db3b4f..19178ea 100644 --- a/github-action/Dockerfile +++ b/github-action/Dockerfile @@ -1,4 +1,4 @@ -FROM ghcr.io/hahwul/deadfinder:1.3.3 +FROM ghcr.io/hahwul/deadfinder:1.3.4 COPY entrypoint.sh /entrypoint.sh RUN chmod 755 /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"] diff --git a/lib/deadfinder/version.rb b/lib/deadfinder/version.rb index ce14a1b..709ef2e 100644 --- a/lib/deadfinder/version.rb +++ b/lib/deadfinder/version.rb @@ -1,3 +1,3 @@ # frozen_string_literal: true -VERSION = '1.3.3' +VERSION = '1.3.4' diff --git a/ruby-version b/ruby-version index acf9bf0..0fa4ae4 100644 --- a/ruby-version +++ b/ruby-version @@ -1 +1 @@ -3.2.2 \ No newline at end of file +3.3.0 \ No newline at end of file