41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
name: Package
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "*"
|
|
|
|
jobs:
|
|
package:
|
|
runs-on: ubuntu-24.04
|
|
strategy:
|
|
matrix:
|
|
platform: [linux/arm64/v8]
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
with:
|
|
platforms: linux/arm64
|
|
|
|
- name: Prepare container
|
|
run: docker buildx build -f ci/Dockerfile . -t libcreate --platform ${{ matrix.platform }} --load
|
|
- name: Build
|
|
run: docker run --platform ${{ matrix.platform }} -v ./output:/libcreate/_packages libcreate
|
|
- name: Push deb to compREP
|
|
uses: cpina/github-action-push-to-another-repository@main
|
|
env:
|
|
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
|
|
with:
|
|
source-directory: "output/"
|
|
target-directory: "debs/libcreate/"
|
|
destination-github-username: "F-WuTS"
|
|
destination-repository-name: "compREP"
|
|
target-branch: master
|