Skip to content

fix(deps): foolish dependabot leaves lock file unchanged while update… #37

fix(deps): foolish dependabot leaves lock file unchanged while update…

fix(deps): foolish dependabot leaves lock file unchanged while update… #37

Workflow file for this run

name: Build Docker Images
on:
release:
types: [published, created]
workflow_dispatch:
push:
branches:
- main
env:
REGISTRY: ghcr.io
jobs:
build-images:
name: Build and push Docker images
strategy:
fail-fast: false
matrix:
image: [backend, frontend]
arch: [amd64, arm64]
include:
- image: backend
dockerfile: backend.Dockerfile
image_name: em-geeklab/nexus-gate-server
- image: frontend
dockerfile: frontend.Dockerfile
image_name: em-geeklab/nexus-gate-web
- arch: amd64
platform: linux/amd64
runner: ubuntu-24.04
- arch: arm64
platform: linux/arm64
runner: ubuntu-24.04-arm
runs-on: ${{ matrix.runner }}
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ env.REGISTRY }}/${{ matrix.image_name }}
- name: Build and push Docker image
id: push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
file: ${{ matrix.dockerfile }}
platforms: ${{ matrix.platform }}
build-args: COMMIT_SHA=${{ github.sha }}
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v2
with:
subject-name: ${{ env.REGISTRY }}/${{ matrix.image_name }}
subject-digest: ${{ steps.push.outputs.digest }}