Skip to content

Commit

Permalink
from asl3
Browse files Browse the repository at this point in the history
  • Loading branch information
jxmx committed Jul 29, 2024
1 parent 7eaaeea commit 78e555d
Showing 1 changed file with 21 additions and 26 deletions.
47 changes: 21 additions & 26 deletions .github/workflows/make_and_publish_pkgs.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,39 @@
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:
type: choice
options:
- amd64
os:
description: 'Debian Release Version'
type: choice
options:
- bookworm
- bullseye
- buster
- sid
- trixie
deployment-environment:
gh-rel:
description: 'GitHub Release Tag (for debs)'
type: string
aptly-repo:
description: 'Aptly Repository Stream'
type: choice
options:
- development
- testing
- production
commit-versioning:
- beta
- devel
arch:
description: 'Platform Architecture (Do not change)'
type: choice
options:
- default
- yes
- no
- amd64

env:
APTLY_API_USER: ${{secrets.APTLY_API_USER}}
APTLY_API_PASS: ${{secrets.APTLY_API_PASS}}
APTLY_GPG_PASSPHRASE: ${{secrets.APTLY_GPG_PASSPHRASE}}

jobs:
make-packages:
uses: AllStarLink/asl_workflows/.github/workflows/ephemeral_ec2_run-this.yml@develop
with:
run-this: ./builder/dockerbuild.sh -a ${{ inputs.arch }} -o ${{ inputs.os }} ${{ (inputs.commit-versioning == 'yes' || (inputs.commit-versioning == 'default' && inputs.deployment-environment == 'development')) && '-r' || null }}
arch: ${{ inputs.arch == 'armhf' && 'arm64' || inputs.arch == 'amd64' && 'x86_64' || inputs.arch == 'riscv64' && 'x86_64' || inputs.arch }}
artifact-path: 'build/*'
secrets: inherit
publish-packages:
uses: AllStarLink/asl_workflows/.github/workflows/publish_artifacts_to_aptly.yml@develop
uses: AllStarLink/asl3-workflows/.github/workflows/ephemeral_ec2_run-this.yml@develop
with:
repo-name: asl_builds-${{inputs.os}}${{ inputs.deployment-environment == 'production' && '' || inputs.deployment-environment == 'testing' && '-testing' || inputs.deployment-environment == 'development' && '-devel' || null }}
run-this: ./builder/dockerbuild.sh -a ${{ inputs.arch }} -o ${{ inputs.os }} --gh-rel ${{ inputs.gh-rel }} -r ${{ inputs.aptly-repo }}
arch: ${{ inputs.arch == 'armhf' && 'arm64' || inputs.arch == 'aarch64' && 'arm64' || inputs.arch == 'amd64' && 'x86_64' || inputs.arch == 'riscv64' && 'x86_64' || inputs.arch }}
artifact-path: '/actions-runner/_work/asl3-update-nodelist/_debs/'
secrets: inherit
needs: make-packages

0 comments on commit 78e555d

Please sign in to comment.