49 lines
1.1 KiB
YAML
49 lines
1.1 KiB
YAML
---
|
|
name: Docker images build and push
|
|
|
|
#on:
|
|
# push:
|
|
# branches:
|
|
# - 'develop'
|
|
# paths:
|
|
# - util/dockerfiles/**
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
|
|
jobs:
|
|
bake:
|
|
runs-on: [self-hosted, linux, x64]
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
target:
|
|
- ubuntu-24-04_all-dependencies
|
|
- gcc-version-11
|
|
|
|
permissions:
|
|
packages: write
|
|
contents: read
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Login to GitHub Container Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.repository_owner }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Build and push
|
|
uses: docker/bake-action@v5
|
|
with:
|
|
targets: ${{ matrix.target }}
|
|
workdir: util/dockerfiles
|
|
push: true
|