auto builder

This commit is contained in:
Jason D. McCormick 2024-05-03 18:12:48 -04:00
parent 11637a6ce3
commit a75a6c8ea6
No known key found for this signature in database
GPG key ID: 45FCBAEE3B025908

View file

@ -1,13 +1,8 @@
name: make_and_publish_pkgs
name: 'Make and Publish Pkgs'
run-name: Package ${{ github.event.repository.name }}(${{ github.ref_name }}) for ${{ inputs.os }}/${{ inputs.arch }}, Publish to ${{ inputs.deployment-environment }}
on:
workflow_dispatch:
inputs:
arch:
description: 'Platform Architecture'
type: choice
options:
- amd64
os:
description: 'Debian Release Version'
type: choice
@ -17,32 +12,28 @@ on:
gh-rel:
description: 'GitHub Release Tag (for debs)'
type: string
deployment-environment:
aptly-repo:
description: 'Aptly Repository Stream'
type: choice
options:
- development
- testing
- production
commit-versioning:
description: 'Commit Versioning'
- beta
- devel
arch:
description: 'Platform Architecture (Do not change)'
type: choice
options:
- default
- yes
- no
- amd64
jobs:
make-packages:
uses: AllStarLink/dahdi-linux/.github/workflows/ephemeral_ec2_run-this.yml@master
uses: AllStarLink/dahdi-linux/.github/workflows/ephemeral_ec2_run-this.yml@develop
with:
run-this: ./builder/dockerbuild.sh -a ${{ inputs.arch }} -o ${{ inputs.os }} --gh-rel ${{ inputs.gh-rel }}
run-this: ./builder/dockerbuild.sh -a ${{ inputs.arch }} -o ${{ inputs.os }} --gh-rel ${{ inputs.gh-rel }}
arch: ${{ inputs.arch == 'armhf' && 'arm64' || inputs.arch == 'aarch64' && 'arm64' || inputs.arch == 'amd64' && 'x86_64' || inputs.arch == 'riscv64' && 'x86_64' || inputs.arch }}
artifact-path: '_debs/*'
artifact-path: '/actions-runner/_work/dahdi-linux/_debs/'
secrets: inherit
# publish-packages:
# uses: AllStarLink/asl3-asterisk/.github/workflows/publish_artifacts_to_aptly.yml@develop
# with:
# repo-name: asl_builds-${{inputs.os}}${{ inputs.deployment-environment == 'production' && '' || inputs.deployment-environment == 'testing' && '-testing' || inputs.deployment-environment == 'development' && '-devel' || null }}
# secrets: inherit
# needs: make-packages
publish-packages:
uses: AllStarLink/dahdi-linux/.github/workflows/publish_artifacts_to_aptly.yml@develop
with:
repo-name: asl3-${{ inputs.aptly-repo }}
secrets: inherit
needs: make-packages