Skip to content

fix: platform

fix: platform #11

name: Build and push Docker image to GHCR
on:
push:
branches:
- master
schedule:
- cron: "0 0 * * 0" # Weekly on Sundays at midnight
jobs:
build-and-push:
runs-on: windows-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx (docker driver for Windows)
uses: docker/setup-buildx-action@v3
with:
driver: docker
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=raw,value=latest
type=ref,event=branch
type=sha
- name: Build and push Docker image
id: push
uses: docker/build-push-action@v6
with:
context: .
push: true
build-args: |
WINDOWS_VERSION=ltsc2025
VECTOR_VERSION=0.51.0
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}