Skip to content

Build repackager container #58

Build repackager container

Build repackager container #58

name: Build repackager container
on:
workflow_dispatch:
schedule:
- cron: '3 0 * * 0'
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{github.repository}}/repackager
jobs:
build_repackager:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Checkout
with:
submodules: true
- name: Setup buildx
uses: docker/setup-buildx-action@v3
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images:
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Docker Build
uses: docker/build-push-action@v5
with:
push: ${{ github.event_name != 'pull_request' }}
context: ./.github/actions/klippy-build/
file: ./.github/actions/klippy-build/Dockerfile.github
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max