Skip to content

Commit

Permalink
start mondoo-operator edge integration tests on each edge release
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Milchev <[email protected]>
  • Loading branch information
imilchev committed Dec 27, 2022
1 parent e74cc80 commit 92867d4
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/goreleaser-edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Locally tag the current commit
run: |
VERSION=$(make version)
git tag ${VERSION/\+/-}
RAW_VERSION=$(make version)
echo "VERSION=${RAW_VERSION/\+/-}" >> $GITHUB_ENV
git tag ${{ env.VERSION }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
Expand All @@ -47,3 +48,12 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NFPM_DEFAULT_RPM_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
- name: Start mondoo-operator integration tests
run: |
curl -s \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token ${{ secrets.REPO_API_TOKEN }}" \
https://api.github.com/repos/mondoohq/mondoo-operator/actions/workflows/31262606/dispatches \
-d "{\"ref\":\"main\",\"inputs\":{\"cnspecImageTag\":\"edge-${{ env.VERSION }}-rootless\"}}"

0 comments on commit 92867d4

Please sign in to comment.