From 63e5681a30141a2c260b0f948e551b24379d7437 Mon Sep 17 00:00:00 2001 From: Alex Sorokoletov Date: Wed, 10 Jan 2024 01:14:53 -0500 Subject: [PATCH] chore: update ci to use latest actions + add ruby-dev and gems --- .github/workflows/docker-image.yml | 9 ++++++--- Dockerfile | 8 ++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 64ede06..d93fa50 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -14,16 +14,19 @@ jobs: runs-on: ubuntu-latest steps: - name: Check Out Repo - uses: actions/checkout@v2 + uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 - name: Log in to Docker Hub - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} - name: Build and Push Docker Image - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v5 with: context: . file: Dockerfile diff --git a/Dockerfile b/Dockerfile index 8fec5bb..1a377ef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,12 @@ ARG RUBY_VERSION FROM ruby:${RUBY_VERSION}-alpine +# Install ruby-dev and other dependencies +RUN apk add --no-cache ruby-dev +# Install required gems +RUN gem install faraday -v '~> 0.9.2' +RUN gem install json +RUN gem install netrc -v '~> 0.11.0' +RUN gem install rendezvous -v '~> 0.1.3' + RUN apk --no-cache add git curl RUN gem install dpl --pre