feat: added ruby on bookworm image
All checks were successful
Build and publish "Ruby on Bookworm" image / Build and publish (push) Successful in 17s

Signed-off-by: Louis Vallat <contact@louis-vallat.dev>
This commit is contained in:
Louis Vallat 2024-09-08 19:56:38 +02:00
parent a605ca99ad
commit 3cd83cb012
Signed by: louis
SSH Key Fingerprint: SHA256:usb9EA8eIADT+Bt0Ne8ZkISCbgPSOYkVgS2iZqdZj8s
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,36 @@
name: "Build and publish \"Ruby on Bookworm\" image"
defaults:
run:
shell: sh
on:
push:
branches:
- master
paths:
- ruby-bookworm/**
jobs:
publish-image:
name: "Build and publish"
runs-on: alpine
steps:
- name: Install dependencies
run: apk add git docker
- name: Check out repository code
uses: actions/checkout@v4
- name: Login to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: git.louis-vallat.dev
username: louis
password: ${{ secrets.CONTAINER_REGISTRY_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: ./ruby-bookworm
file: ./ruby-bookworm/Dockerfile
platforms: |
linux/amd64
push: true
tags: |
git.louis-vallat.dev/louis/action-images:ruby-bookworm

6
ruby-bookworm/Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM node:20-bookworm@sha256:48db4f6ea21d134be744207225753a1730c4bc1b4cdf836d44511c36bf0e34d7
RUN apt-get update && \
apt-get install git -y && \
apt-get install ruby-full -y && \
rm -rf /var/lib/apt/lists/*