summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYevhen Bondarenko <evgeniy.bondarenko@sentrium.io>2024-10-02 15:16:27 +0200
committerGitHub <noreply@github.com>2024-10-02 15:16:27 +0200
commit548ede61d0a95fc82a23429e00effe39f8059cd1 (patch)
treedf626cd9d885c8c6484dd0070a0de4fb1ed6074b
parent2b9303d0bd6b43bd92e2b2e9835a048877a63e11 (diff)
downloadvyos-build-evg-package-build-rewrite.tar.gz
vyos-build-evg-package-build-rewrite.zip
added rewritten workflow [no ci]evg-package-build-rewrite
-rw-r--r--.github/workflows/trigger_rebuild_packages_rewrite.yml95
1 files changed, 95 insertions, 0 deletions
diff --git a/.github/workflows/trigger_rebuild_packages_rewrite.yml b/.github/workflows/trigger_rebuild_packages_rewrite.yml
new file mode 100644
index 00000000..d7b1f7d6
--- /dev/null
+++ b/.github/workflows/trigger_rebuild_packages_rewrite.yml
@@ -0,0 +1,95 @@
+name: Trigger to build package (common approach)
+
+on:
+ pull_request_target:
+ types:
+ - closed
+ # branches:
+ # - current
+ workflow_dispatch:
+
+jobs:
+ changes:
+ runs-on: ubuntu-latest
+ outputs:
+ changes-matrix: ${{ steps.changes.outputs.changes }}
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ with:
+ ref: ${{ github.ref_name }}
+
+ - uses: dorny/paths-filter@v3
+ id: changes
+ with:
+ base: ${{ github.ref_name }}
+ filters: |
+ aws-gwlbtun:
+ - 'scripts/package-build/aws-gwlbtun/**'
+ ddclient:
+ - 'scripts/package-build/ddclient/**'
+ dropbear:
+ - 'scripts/package-build/dropbear/**'
+ ethtool:
+ - 'scripts/package-build/ethtool/**'
+ frr:
+ - 'scripts/package-build/frr/**'
+ hostap:
+ - 'scripts/package-build/hostap/**'
+ hsflowd:
+ - 'scripts/package-build/hsflowd/**'
+ isc-dhcp:
+ - 'scripts/package-build/isc-dhcp/**'
+ kea:
+ - 'scripts/package-build/kea/**'
+ keepalived:
+ - 'scripts/package-build/keepalived/**'
+ linux-kernel:
+ - 'data/defaults.toml'
+ - 'scripts/package-build/linux-kernel/**'
+ ndppd:
+ - 'scripts/package-build/ndppd/**'
+ net-snmp:
+ - 'scripts/package-build/net-snmp/**'
+ netfilter:
+ - 'scripts/package-build/netfilter/**'
+ opennhrp:
+ - 'scripts/package-build/opennhrp/**'
+ openvpn-otp:
+ - 'scripts/package-build/openvpn-otp/**'
+ owamp:
+ - 'scripts/package-build/owamp/**'
+ pam_tacplus:
+ - 'scripts/package-build/pam_tacplus/**'
+ pmacct:
+ - 'scripts/package-build/pmacct/**'
+ podman:
+ - 'scripts/package-build/podman/**'
+ pyhumps:
+ - 'scripts/package-build/pyhumps/**'
+ radvd:
+ - 'scripts/package-build/radvd/**'
+ strongswan:
+ - 'scripts/package-build/strongswan/**'
+ telegraf:
+ - 'scripts/package-build/telegraf/**'
+ waagent:
+ - 'scripts/package-build/waagent/**'
+ wide-dhcpv6:
+ - 'scripts/package-build/wide-dhcpv6/**'
+
+ trigger-package-build:
+ needs: changes
+ strategy:
+ matrix:
+ package: ${{ fromJSON(needs.changes.outputs.changes-matrix) }}
+ uses: vyos/.github/.github/workflows/trigger-rebuild-repo-package.yml@current
+ with:
+ branch: current
+ package_name: ${{ matrix.package }}
+ secrets:
+ REMOTE_OWNER: ${{ secrets.REMOTE_OWNER }}
+ REMOTE_REUSE_REPO: ${{ secrets.REMOTE_REUSE_REPO }}
+ GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
+ PAT: ${{ secrets.PAT }} \ No newline at end of file