From f365544fd812ecf48b7e20a3dba4d035b14a2cf6 Mon Sep 17 00:00:00 2001 From: Ivan Milchev Date: Tue, 27 Dec 2022 13:53:49 +0100 Subject: [PATCH] start mondoo-operator edge integration tests on each edge release Signed-off-by: Ivan Milchev --- .github/workflows/goreleaser-edge.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/goreleaser-edge.yml b/.github/workflows/goreleaser-edge.yml index 4b426752..b08b6e6b 100644 --- a/.github/workflows/goreleaser-edge.yml +++ b/.github/workflows/goreleaser-edge.yml @@ -34,10 +34,12 @@ jobs: registry: ${{ env.REGISTRY }} username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - - name: Locally tag the current commit + - name: Prepare tag version run: | - VERSION=$(make version) - git tag ${VERSION/\+/-} + RAW_VERSION=$(make version) + echo "VERSION=${RAW_VERSION/\+/-}" >> $GITHUB_ENV + - name: Locally tag the current commit + run: git tag ${{ env.VERSION }} - name: Run GoReleaser uses: goreleaser/goreleaser-action@v3 with: @@ -47,3 +49,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\"}}" +