Skip to content

Build Custom

Build Custom #1

Workflow file for this run

name: Build Custom
on:
workflow_dispatch:
inputs:
version:
description: 'Build Version'
required: true
default: 'latest'
jobs:
build-custom:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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 Image
uses: docker/build-push-action@v5
with:
context: .
provenance: false
file: Dockerfile
platforms: linux/amd64
push: true
tags: |
ghcr.io/${{ github.repository }}:${{ github.event.inputs.version }}
outputs: type=image,oci-mediatypes=true,compression=zstd,compression-level=3,force-compression=true
cache-from: type=gha
cache-to: type=gha,mode=max