Files
Serge Logvinov 4402b31acc chore: bump deps
Update deps

Signed-off-by: Serge Logvinov <serge.logvinov@sinextra.dev>
2025-09-02 11:36:54 +07:00

55 lines
1.2 KiB
YAML

name: Build edge
on:
push:
branches:
- main
paths:
- 'go.mod'
- 'go.sum'
- 'cmd/**'
- 'pkg/**'
- 'Dockerfile'
jobs:
build-publish:
name: "Build image and publish"
runs-on: ubuntu-24.04
permissions:
contents: read
packages: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Unshallow
run: git fetch --prune --unshallow
- name: Install Cosign
uses: sigstore/cosign-installer@v3.9.2
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
- name: Set up docker buildx
uses: docker/setup-buildx-action@v3
- name: Github registry login
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
run: make images
env:
USERNAME: ${{ github.repository_owner }}
PUSH: "true"
TAG: "edge"
- name: Sign images
run: make images-cosign
env:
USERNAME: ${{ github.repository_owner }}
TAG: "edge"