Skip to content

Update v8 (formdata support) #102

Update v8 (formdata support)

Update v8 (formdata support) #102

Workflow file for this run

name: Docker
on:
push:
branches:
- master
- dev
tags:
- "v*.*.*"
pull_request:
branches:
- master
- dev
jobs:
build:
name: Build (${{ matrix.runtime }})
runs-on: ubuntu-24.04
strategy:
matrix:
runtime: [deno, v8]
steps:
- name: Check Out Repo
uses: actions/checkout@v4
- name: Docker metadata
id: metadata
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/${{ github.repository }}
tags: |
type=raw,value=${{ matrix.runtime }},enable={{is_default_branch}}
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/master' && matrix.runtime == 'deno' }}
type=ref,event=branch,suffix=-${{ matrix.runtime }}
type=ref,event=tag,suffix=-${{ matrix.runtime }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build server
id: docker_build
uses: docker/build-push-action@v5
with:
file: Dockerfile.multi
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.metadata.outputs.tags }}
build-args: |
RUNTIME=${{ matrix.runtime }}
cache-from: type=gha,scope=${{ matrix.runtime }}
cache-to: type=gha,mode=max,scope=${{ matrix.runtime }}
platforms: linux/amd64,linux/arm64