* linting is fun * mis-detection of missing healthcheck staements. * typo * disable tagging vanity tags on non-main branch * Unbugger node build? * Add gitleaks detector, remove an expired secret. * More linting-derived cleanup * Fiddle with trivy * Fiddle with trivy * add a readme * Fix build bug with php flavours * Marshall should build other flavours of ubuntu. * Fiddle with act cache location. * Add concurrency checks * Composer version gubbins for 7.0/7.1 * ubuntu is just a label, and injected over the top of. * Composer version gubbins for 7.0/7.1 * Run when workflow is altered too please. * Hopefully fix composer stage. * setup tooling meta-tooling. * Add trunk * Disable mirror mode, its being problematic, and increase retries to 5. * Revisit how ghcr login works. * Add trunk checks. * All hail the linter * Heavilly revise workflow * Fettling * Fettling * Fettling * Fettling * Fettling * Cleanup * Cleanup * Fettling.. Why does mitm build but not redis? * Fettling.. Why does mitm build but not redis? * Debuggin * Fettling. * Fix build? * Permissions are a pain * Switch around some should_push logic because envs aren't available that early. * Permissionssssss * Trivy, bane of my life * Fix merge? * Fix labels * Help node along, among other things * Redis 6.1 & 7.1 aren't a thing any more. * Ffff USER nonsense * latest-openssl doesn't exist. * fixup mysqlproxy. * Fix labels * uurrgh * uurrgh * Didn't need to add the mitmproxy user, it exists * Missing ghcr login * Missing backtick * Fix build? * Add validate build step to bouncer. * Fix bouncer build * Disable laravel build * Missing env * Fix swarm mon build * Scout just doesn't seem to work.
76 lines
1.9 KiB
YAML
76 lines
1.9 KiB
YAML
name: Build NodeJS Flavours
|
|
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
|
|
on:
|
|
workflow_call:
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: nodejs-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
should_push: ${{ github.ref == 'refs/heads/main' }}
|
|
|
|
jobs:
|
|
node-flavours-build:
|
|
name: "Build"
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
yarn:
|
|
- latest
|
|
- "1.22.21"
|
|
- "1.22.20"
|
|
- "1.22.0"
|
|
- "1.21.0"
|
|
- "1.20.0"
|
|
node:
|
|
- latest
|
|
- "16.13.0"
|
|
- "16.20.2"
|
|
- "17.9.1"
|
|
- "18.19.0"
|
|
- "19.9.0"
|
|
- "20.9.0"
|
|
- "21.6.1"
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: docker/setup-qemu-action@v2
|
|
- uses: docker/setup-buildx-action@v2
|
|
|
|
- name: "Setup: Login to Docker Hub"
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: matthewbaggett
|
|
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
|
|
|
|
- name: "Setup: Login to GHCR"
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ghcr.io
|
|
username: matthewbaggett
|
|
password: ${{ secrets.GHCR_PASSWORD }}
|
|
|
|
- uses: docker/build-push-action@v3
|
|
name: Build & Push
|
|
with:
|
|
context: node
|
|
file: node/Dockerfile
|
|
target: nodejs
|
|
platforms: linux/amd64,linux/arm64
|
|
pull: true
|
|
push: ${{ env.should_push && !env.ACT }}
|
|
tags: |
|
|
gone/node:${{ matrix.node }}-${{ matrix.yarn }}
|
|
benzine/node:${{ matrix.node }}-${{ matrix.yarn }}
|
|
ghcr.io/benzine-framework/node:${{ matrix.node }}-${{ matrix.yarn }}
|
|
build-args: |
|
|
NODE_VERSION=${{ matrix.node }}
|
|
YARN_VERSION=${{ matrix.yarn }}
|
|
build-contexts: |
|
|
marshall:build=docker-image://ghcr.io/benzine-framework/marshall:focal
|