Skip to content

Commit

Permalink
add installer release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Isola committed Apr 18, 2024
1 parent 60b2117 commit 4e366e8
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release-installer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Trigger installer release

on:
release:
types: [published]

jobs:
release-installer:
runs-on: ubuntu-latest
steps:
- name: Install gh cli
run: |
wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& sudo apt update \
&& sudo apt install gh -y
- name: Trigger installer release
env:
GITHUB_TOKEN: ${{ secrets.INSTALLER_REPO_TOKEN }}
run: gh workflow run release_mondoo_pkgs.yaml --repo "mondoohq/installer" --field version=${{ github.ref_name }}

0 comments on commit 4e366e8

Please sign in to comment.