Generate Nudge targets in CI (#9845)
Tooling to generate targets in CI for #9798. --------- Co-authored-by: Roberto Dip <me@roperzh.com>
This commit is contained in:
co-authored by
Roberto Dip
parent
fa695cef34
commit
4669d8c474
@@ -0,0 +1,46 @@
|
||||
name: Generate Nudge targets for Fleetd
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
# The workflow can be triggered by modifying NUDGE_VERSION env.
|
||||
- '.github/workflows/generate-nudge-targets.yml'
|
||||
pull_request:
|
||||
paths:
|
||||
# The workflow can be triggered by modifying NUDGE_VERSION env.
|
||||
- '.github/workflows/generate-nudge-targets.yml'
|
||||
workflow_dispatch:
|
||||
|
||||
# This allows a subsequently queued workflow run to interrupt previous runs
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id}}
|
||||
cancel-in-progress: true
|
||||
|
||||
defaults:
|
||||
run:
|
||||
# fail-fast using bash -eo pipefail. See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference
|
||||
shell: bash
|
||||
|
||||
env:
|
||||
NUDGE_VERSION: 1.1.10.81462
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
generate-macos:
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v2
|
||||
|
||||
- name: Generate nudge.app.tar.gz
|
||||
run: make nudge-app-tar-gz version=$NUDGE_VERSION out-path=.
|
||||
|
||||
- name: Upload nudge.app.tar.gz
|
||||
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v2
|
||||
with:
|
||||
name: nudge.app.tar.gz
|
||||
path: nudge.app.tar.gz
|
||||
@@ -1,4 +1,4 @@
|
||||
name: Generate osqueryd targets for Orbit
|
||||
name: Generate osqueryd targets for Fleetd
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
Reference in New Issue
Block a user