Skip to content

chore: add build-base so we can freaking build the json gem #11

chore: add build-base so we can freaking build the json gem

chore: add build-base so we can freaking build the json gem #11

Workflow file for this run

name: Docker Build and Push
on:
push:
branches:
- master
- pre
env:
RUBY_VERSION: '3.0' # Define the Ruby version here
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
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@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build and Push Docker Image
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
push: true
tags: dreamteammobile/gitlab-runner-heroku-dpl:${{ github.ref == 'refs/heads/pre' && 'v2' || 'v1' }}_${{ env.RUBY_VERSION }}
build-args: RUBY_VERSION=${{ env.RUBY_VERSION }}