Skip to content

Bump ws from 8.19.0 to 8.21.0 (#15) #14

Bump ws from 8.19.0 to 8.21.0 (#15)

Bump ws from 8.19.0 to 8.21.0 (#15) #14

name: Build and Publish Docker Image
on:
push:
branches:
- main
paths:
- Dockerfile
- package.json
- package-lock.json
- src/**
- assets/**
- '**/*.js'
workflow_dispatch: {}
permissions:
contents: read
packages: write
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
# 1. Checkout the repository
- name: Checkout repository
uses: actions/checkout@v4
# 2. Log in to GitHub Container Registry (GHCR)
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GHCR_PAT }}
# 3. Set up QEMU (enables arm64 builds on ubuntu runners)
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
# 4. Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# 5. Build and push multi-arch image
- name: Build and push (amd64 + arm64)
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ghcr.io/itsalexik/corewatch:latest
platforms: linux/amd64,linux/arm64