diff --git a/.github/workflows/goreleaser-edge.yml b/.github/workflows/goreleaser-edge.yml index 4b426752..57924a44 100644 --- a/.github/workflows/goreleaser-edge.yml +++ b/.github/workflows/goreleaser-edge.yml @@ -36,7 +36,8 @@ jobs: password: ${{ secrets.DOCKER_PASSWORD }} - name: Locally tag the current commit run: | - VERSION=$(make version) + RAW_VERSION=$(make version) + echo "VERSION=${RAW_VERSION/\+/-}" >> $GITHUB_ENV git tag ${VERSION/\+/-} - name: Run GoReleaser uses: goreleaser/goreleaser-action@v3 @@ -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\"}}" +