Skip to content

Commit

Permalink
chore: update ci to use latest actions + add ruby-dev and gems
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsorokoletov committed Jan 10, 2024
1 parent 1ca121f commit 63e5681
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 63e5681

Please sign in to comment.