Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
Add new versions
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed May 8, 2024
1 parent ae5411b commit aca8f1d
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 14 deletions.
57 changes: 47 additions & 10 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Check dockerfiles with Hadolint
uses: essentialkaos/hadolint-action@v1
Expand All @@ -52,9 +52,14 @@ jobs:
'3.0.6',
'3.1.3',
'3.1.4',
'3.1.5',
'3.2.0',
'3.2.1',
'3.2.2'
'3.2.2',
'3.2.3',
'3.2.4',
'3.3.0',
'3.3.1'
]

steps:
Expand Down Expand Up @@ -135,12 +140,18 @@ jobs:
exit 0
fi
- name: Setup Docker BuildX
if: ${{ steps.build_check.outputs.build == 'true' }}
uses: docker/setup-buildx-action@v3

- name: Build and push Docker images (Docker)
if: ${{ steps.build_check.outputs.build == 'true' }}
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
push: true
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
file: ${{steps.metadata.outputs.dockerfile}}
build-args: |
REGISTRY=docker.io
Expand All @@ -149,10 +160,12 @@ jobs:

- name: Build and push Docker images (GHCR)
if: ${{ steps.build_check.outputs.build == 'true' }}
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
push: true
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
file: ${{steps.metadata.outputs.dockerfile}}
build-args: |
REGISTRY=ghcr.io
Expand Down Expand Up @@ -182,9 +195,14 @@ jobs:
'3.0.6',
'3.1.3',
'3.1.4',
'3.1.5',
'3.2.0',
'3.2.1',
'3.2.2'
'3.2.2',
'3.2.3',
'3.2.4',
'3.3.0',
'3.3.1'
]

steps:
Expand Down Expand Up @@ -265,12 +283,18 @@ jobs:
exit 0
fi
- name: Setup Docker BuildX
if: ${{ steps.build_check.outputs.build == 'true' }}
uses: docker/setup-buildx-action@v3

- name: Build and push Docker images (Docker)
if: ${{ steps.build_check.outputs.build == 'true' }}
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
push: true
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
file: ${{steps.metadata.outputs.dockerfile}}
build-args: |
REGISTRY=docker.io
Expand All @@ -279,10 +303,12 @@ jobs:

- name: Build and push Docker images (GHCR)
if: ${{ steps.build_check.outputs.build == 'true' }}
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
push: true
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
file: ${{steps.metadata.outputs.dockerfile}}
build-args: |
REGISTRY=ghcr.io
Expand Down Expand Up @@ -311,7 +337,10 @@ jobs:
'9.4.0.0',
'9.4.1.0',
'9.4.2.0',
'9.4.3.0'
'9.4.3.0',
'9.4.4.0',
'9.4.5.0',
'9.4.6.0'
]

steps:
Expand Down Expand Up @@ -392,12 +421,18 @@ jobs:
exit 0
fi
- name: Setup Docker BuildX
if: ${{ steps.build_check.outputs.build == 'true' }}
uses: docker/setup-buildx-action@v3

- name: Build and push Docker images (Docker)
if: ${{ steps.build_check.outputs.build == 'true' }}
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
push: true
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
file: ${{steps.metadata.outputs.dockerfile}}
build-args: |
REGISTRY=docker.io
Expand All @@ -406,10 +441,12 @@ jobs:

- name: Build and push Docker images (GHCR)
if: ${{ steps.build_check.outputs.build == 'true' }}
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
push: true
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
file: ${{steps.metadata.outputs.dockerfile}}
build-args: |
REGISTRY=ghcr.io
Expand Down
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,27 @@ This repository contains workflow for the automatic Ruby images building using [
| `3.0.6` | `3.0.6-jemalloc` | `jruby-9.4.1.0` |
| `3.1.3` | `3.1.3-jemalloc` | `jruby-9.4.2.0` |
| `3.1.4` | `3.1.4-jemalloc` | `jruby-9.4.3.0` |
| `3.2.0` | `3.2.0-jemalloc` | |
| `3.1.5` | `3.1.5-jemalloc` | `jruby-9.4.4.0` |
| `3.2.0` | `3.2.0-jemalloc` | `jruby-9.4.5.0` |
| `3.2.1` | `3.2.1-jemalloc` | |
| `3.2.2` | `3.2.2-jemalloc` | |
| `3.1.3` | `3.1.3-jemalloc` | |
| `3.2.3` | `3.2.3-jemalloc` | |
| `3.2.4` | `3.2.4-jemalloc` | |
| `3.3.0` | `3.3.0-jemalloc` | |
| `3.3.1` | `3.3.1-jemalloc` | |

Usage exmplates:

Pull image from DockerHub:

```bash
docker pull essentialkaos/ruby:3.2.0-jemalloc
docker pull essentialkaos/ruby:3.3.0-jemalloc
```

Pull image from GitHub Container Registry:

```bash
docker pull ghcr.io/essentialkaos/ruby:jruby-9.4.0.0
docker pull ghcr.io/essentialkaos/ruby:jruby-9.4.5.0
```

### Contributing
Expand Down

0 comments on commit aca8f1d

Please sign in to comment.