Skip to content

β˜• chore: bump wgtechlabs/container-build-flow-action from 1.3.1 to 1.7.0 #98

β˜• chore: bump wgtechlabs/container-build-flow-action from 1.3.1 to 1.7.0

β˜• chore: bump wgtechlabs/container-build-flow-action from 1.3.1 to 1.7.0 #98

Workflow file for this run

name: Build
on:
pull_request:
branches: [dev, main]
push:
branches: [dev]
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9.15.4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Type checking
run: pnpm type-check
- name: Run tests
run: pnpm test
- name: Generate coverage
run: pnpm test:coverage
continue-on-error: true
build:
name: Build Container Images
runs-on: ubuntu-latest
needs: test
permissions:
contents: read
packages: write
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build and Push Container
uses: wgtechlabs/container-build-flow-action@v1.7.0
with:
# Registry Configuration
registry: both
dockerhub-username: ${{ secrets.DOCKER_HUB_USERNAME }}
dockerhub-token: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
# Branch Configuration
main-branch: main
dev-branch: dev
# Image Configuration
image-name: unthread-webhook-server
dockerfile: ./Dockerfile
context: .
platforms: linux/amd64
# Build Arguments
build-args: |
NODE_VERSION=22.21-alpine3.23
RAILWAY_SERVICE_ID=${{ secrets.RAILWAY_SERVICE_ID }}
# Labels
labels: |
org.opencontainers.image.title=Unthread Webhook Server
org.opencontainers.image.description=A reliable, production-ready Node.js server for processing Unthread.io webhooks with signature verification and smart platform handling.
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
org.opencontainers.image.url=${{ github.server_url }}/${{ github.repository }}
org.opencontainers.image.licenses=GPL-3.0
# Features
pr-comment-enabled: true
cache-enabled: true
provenance: true
sbom: true