Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
feat: initial
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed Apr 30, 2021
1 parent c02f9ae commit eb0075f
Show file tree
Hide file tree
Showing 10 changed files with 96 additions and 3 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"trailingComma": "es5"
}
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# renovate: datasource=github-releases depName=containerbase/ruby-prebuild versioning=ruby
ARG RUBY_VERSION=2.7.3

FROM ghcr.io/containerbase/buildpack:1.3.0@sha256:8d0bd58e02d271304e6ab378aede3927dd2cfb98cdae59d0e8bf6f66a5393963

ARG RUBY_VERSION
RUN install-tool ruby

LABEL org.opencontainers.image.source="https://github.com/containerbase/ruby" \
org.opencontainers.image.version="${RUBY_VERSION}"

USER 1000
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 Container Base
Copyright (c) 2021 WhiteSource Ltd

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
# ruby
containerbase ruby
![Build status](https://github.com/containerbase/ruby/workflows/build/badge.svg)
![Docker Image Size (latest)](https://img.shields.io/docker/image-size/containerbase/ruby/latest)
[![Docker Image Version](https://img.shields.io/docker/v/containerbase/ruby/latest)](https://hub.docker.com/r/containerbase/ruby)
![GitHub](https://img.shields.io/github/license/containerbase/ruby)

# containerbase ruby

This repository is the source for the Docker Hub image `containerbase/ruby`. Commits to `main` branch are automatically built and published.
6 changes: 6 additions & 0 deletions builder.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"image": "ruby",
"startVersion": "2.5.0",
"cache": "docker-build-cache",
"ignoredVersions": ["2.5.2"]
}
17 changes: 17 additions & 0 deletions renovate.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#-------------------------
# renovate rebuild trigger
# https://www.ruby-lang.org/en/downloads/branches/
#-------------------------

# makes lint happy
FROM scratch

# EOL: 2022-03-31
# renovate: datasource=github-releases depName=containerbase/ruby-prebuild versioning=ruby
ENV PHP_VERSION=2.6.7

# renovate: datasource=github-releases depName=containerbase/ruby-prebuild versioning=ruby
ENV PHP_VERSION=2.7.3

# renovate: datasource=github-releases depName=containerbase/ruby-prebuild versioning=ruby
ENV PHP_VERSION=3.0.1
4 changes: 4 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["github>containerbase/.github"]
}
33 changes: 33 additions & 0 deletions workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: build

on:
push:
branches:
- main
- 'renovate/**'

pull_request:

env:
DRY_RUN: ${{ github.ref != 'refs/heads/main' }}
OWNER: ${{ github.repository_owner }}

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]

- name: Docker registry login
if: env.DRY_RUN == 'false'
run: |
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ env.OWNER }} --password-stdin
- name: Publish
uses: renovatebot/[email protected]
with:
command: docker-builder
image-prefix: ${{ env.OWNER }}
dry-run: ${{ env.DRY_RUN }}

0 comments on commit eb0075f

Please sign in to comment.