Skip to content

update bun to 1.0.16 #106

update bun to 1.0.16

update bun to 1.0.16 #106

Workflow file for this run

name: Docker image
on:
push:
branches:
- master
paths:
- 'nodejs.Dockerfile'
- 'nodejs.entrypoint.sh'
- 'python.Dockerfile'
- 'python.entrypoint.sh'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
nodejs:
runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, '[skip-ci]') && !contains(github.event.head_commit.message, '[skip-js]') }}
strategy:
fail-fast: false
matrix:
node_version: [12, 14, 16, 18, 19, 20]
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Set up QEMU
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3
- name: Login to DockerHub
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5
with:
build-args: NODE_VERSION=${{ matrix.node_version }}
context: .
file: nodejs.Dockerfile
platforms: linux/amd64, linux/arm64
push: true
tags: djoh/all-in-one:node${{ matrix.node_version }}
cache-from: type=registry,ref=djoh/all-in-one:buildcache_node${{ matrix.node_version }}
cache-to: type=registry,ref=djoh/all-in-one:buildcache_node${{ matrix.node_version }},mode=max
python:
runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, '[skip-ci]') && !contains(github.event.head_commit.message, '[skip-py]') }}
strategy:
fail-fast: false
matrix:
python_version: [3.8.18, 3.9.18, 3.10.13, 3.11.5]
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Set up QEMU
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3
- name: Login to DockerHub
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract first two elements
id: extract
run: |
str="${{ matrix.python_version }}"
IFS='.' read -ra arr <<< "$str"
result="${arr[0]}.${arr[1]}"
echo "::set-output name=result::$result"
- name: Build and push
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5
with:
build-args: |
PYTHON_VERSION=${{ matrix.python_version }}
PYTHON_VERSION_SHORT=${{ steps.extract.outputs.result }}
context: .
file: python.Dockerfile
platforms: linux/amd64, linux/arm64
push: true
tags: "djoh/all-in-one:python${{ steps.extract.outputs.result }}"
cache-from: type=registry,ref=djoh/all-in-one:buildcache_python${{ matrix.python_version }}
cache-to: type=registry,ref=djoh/all-in-one:buildcache_python${{ matrix.python_version }},mode=max