royalcat
e82d000729
Some checks failed
docker / build-docker (linux/386) (push) Failing after 1m15s
docker / build-docker (linux/amd64) (push) Failing after 14s
docker / build-docker (linux/arm/v5) (push) Failing after 14s
docker / build-docker (linux/arm/v7) (push) Failing after 14s
docker / build-docker (linux/arm64) (push) Failing after 13s
docker / build-docker (linux/arm64/v8) (push) Failing after 14s
docker / build-docker (linux/riscv64) (push) Failing after 14s
69 lines
1.8 KiB
YAML
69 lines
1.8 KiB
YAML
name: docker
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
tags:
|
|
- "v*"
|
|
|
|
jobs:
|
|
build-docker:
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
platform:
|
|
- linux/amd64
|
|
- linux/arm64
|
|
- linux/386
|
|
- linux/arm/v5
|
|
- linux/arm/v7
|
|
- linux/arm64/v8
|
|
- linux/riscv64
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Login to Container Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: git.kmsign.ru
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Docker meta
|
|
id: meta
|
|
uses: https://github.com/docker/metadata-action@v5
|
|
with:
|
|
# list of Docker images to use as base name for tags
|
|
images: git.kmsign.ru/${{ github.repository }}
|
|
# generate Docker tags based on the following events/attributes
|
|
tags: |
|
|
type=schedule
|
|
type=ref,event=branch
|
|
type=ref,event=pr
|
|
type=semver,pattern={{version}}
|
|
type=semver,pattern={{major}}.{{minor}}
|
|
type=semver,pattern={{major}}
|
|
type=sha
|
|
|
|
- name: Build and push Docker image
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
push: true
|
|
pull: true
|
|
platforms: ${{ matrix.platform }}
|
|
labels: ${{ steps.meta.outputs.labels }}
|
|
sbom: true
|
|
provenance: true
|
|
# cache-from: type=gha
|
|
# cache-to: type=gha,mode=max
|
|
tags: ${{ steps.meta.outputs.tags }}
|