Skip to content

testbuild

testbuild #282

name: Build Packages
on:
push:
branches:
- buildv2
tags:
- 'v*.*.*'
jobs:
prebuild:
runs-on: buildinator
outputs:
manifest: ${{ steps.prebuild.outputs.manifest }}
matrix: ${{ steps.prebuild.outputs.matrix }}
uuid: ${{ steps.prebuild.outputs.uuid }}
steps:
- name: Checkout
uses: actions/checkout@v3
- id: prebuild
name: Prebuild flow
uses: 45drives/actions/prebuild-flow@main
with:
directory: ${{ github.workspace }}
build:
needs: prebuild
runs-on: buildinator
strategy:
matrix:
build: ${{ fromJSON(needs.prebuild.outputs.matrix).include }}
steps:
- name: Build package
uses: 45drives/actions/build-package@main
with:
manifest: ${{ needs.prebuild.outputs.manifest }}
build: ${{ toJSON(matrix.build) }}
uuid: ${{ needs.prebuild.outputs.uuid }}
sign:
needs:
- prebuild
- build
runs-on: buildinator
steps:
- name: Run sign playbook
uses: 45drives/actions/ansible-playbook@main
with:
playbook: /root/git/auto-packaging/actions/ansible/sign.yml
directory: ${{ github.workspace }}/packaging
group_vars_directory: ${{ github.workspace }}/packaging/group_vars/
inventory: |
[ci]
localhost
become: true
host_key_checking: true
extra_vars: sign_key_name=stable
# push_local:
# needs:
# - prebuild
# - build
# - sign
# runs-on: buildinator
# steps:
# - id: push_local
# name: Push packages into local repository
# uses: 45drives/actions/update-repo@main
# with:
# uuid: ${{ needs.prebuild.outputs.uuid }}