Skip to content

2.5.8

2.5.8 #28

Workflow file for this run

name: Build Image
on:
push:
tags:
- '*'
workflow_dispatch:
permissions:
contents: read
packages: write
concurrency:
group: "help"
cancel-in-progress: false
defaults:
run:
shell: bash
env:
REGISTRY: ghcr.io
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
submodules: recursive
- name: Set up QEMU
uses: docker/setup-qemu-action@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Log in to the Container registry
uses: docker/login-action@v4
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v6
with:
images: ${{ env.REGISTRY }}/${{ github.repository }}
tags: |
type=ref,event=branch
type=ref,event=tag
type=ref,event=pr
type=sha,format=short
type=raw,value=latest,priority=900,enable={{is_default_branch}}
- name: Build and Push
uses: docker/bake-action@v7
env:
GITHUB_TOKEN: ${{ github.token }}
with:
github-token: ${{ github.token }}
push: true
files: |
./docker-bake.hcl
cwd://${{ steps.meta.outputs.bake-file }}
targets: build