From aca8f1df5434b053461c0c6e0eca38fd3f30d1c9 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Wed, 8 May 2024 16:17:26 +0300 Subject: [PATCH] Add new versions --- .github/workflows/cd.yml | 57 +++++++++++++++++++++++++++++++++------- README.md | 12 ++++++--- 2 files changed, 55 insertions(+), 14 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 6c8296a..f696c6a 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -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 @@ -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: @@ -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 @@ -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 @@ -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: @@ -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 @@ -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 @@ -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: @@ -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 @@ -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 diff --git a/README.md b/README.md index 5e1d360..fed49f4 100644 --- a/README.md +++ b/README.md @@ -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