diff --git a/.github/workflows/docker-image-release.yml b/.github/workflows/docker-image-release.yml new file mode 100644 index 00000000..0e220af8 --- /dev/null +++ b/.github/workflows/docker-image-release.yml @@ -0,0 +1,31 @@ +name: Uffizzi CLI Docker Image Release +on: + workflow_call: + +jobs: + docker-image-release: + name: Build and publish docker image + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Docker meta + id: meta + uses: docker/metadata-action@v4 + with: + images: uffizzi/cli + tags: | + type=semver,pattern=v{{version}} + type=semver,pattern=v{{major}} + - name: Build and push + uses: docker/build-push-action@v2 + with: + push: true + tags: ${{ steps.meta.outputs.tags }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7387ec04..1638e100 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,6 +20,11 @@ jobs: - code-quality uses: ./.github/workflows/gem-release.yml secrets: inherit + docker-image-release: + needs: + - code-quality + uses: ./.github/workflows/docker-image-release.yml + secrets: inherit make-binary: needs: - code-quality diff --git a/Gemfile.lock b/Gemfile.lock index 99a0e240..462e42c5 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - uffizzi-cli (2.4.2) + uffizzi-cli (2.4.3) activesupport awesome_print faker @@ -99,8 +99,8 @@ GEM rubocop-rake (0.6.0) rubocop (~> 1.0) ruby-progressbar (1.11.0) - securerandom (0.3.0) - sentry-ruby (5.14.0) + securerandom (0.3.1) + sentry-ruby (5.15.2) concurrent-ruby (~> 1.0, >= 1.0.2) thor (1.3.0) tty-color (0.6.0) @@ -112,7 +112,7 @@ GEM tty-cursor (~> 0.7) tty-screen (~> 0.8) wisper (~> 2.0) - tty-screen (0.8.1) + tty-screen (0.8.2) tty-spinner (0.9.3) tty-cursor (~> 0.7) tzinfo (2.0.4) diff --git a/lib/uffizzi/version.rb b/lib/uffizzi/version.rb index a28d5fc6..367dfb0a 100644 --- a/lib/uffizzi/version.rb +++ b/lib/uffizzi/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Uffizzi - VERSION = '2.4.2' + VERSION = '2.4.3' end