From ecabef6703b8c47938428c354294996eb8a2c642 Mon Sep 17 00:00:00 2001 From: Vincent Boutour Date: Mon, 15 Feb 2021 22:14:50 +0100 Subject: [PATCH] ci: Moving flux notification into its own step --- .github/workflows/build.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 97386502..ba3ef2b4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,7 +7,7 @@ on: branches: - main env: - SCRIPTS_NO_INTERACTIVE: "true" + SCRIPTS_NO_INTERACTIVE: 'true' defaults: run: shell: bash @@ -20,7 +20,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: - go-version: "^1.15" + go-version: '^1.15' - run: | make git --no-pager diff -- ':(exclude)go.sum' && git diff --quiet -- ':(exclude)go.sum' @@ -40,7 +40,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: - go-version: "^1.15" + go-version: '^1.15' - name: Build run: | curl --disable --silent --show-error --location --max-time 30 "https://raw.githubusercontent.com/ViBiOh/scripts/main/bootstrap" | bash -s "release" @@ -58,11 +58,14 @@ jobs: env: DOCKER_USER: ${{ secrets.DOCKER_USER }} DOCKER_PASS: ${{ secrets.DOCKER_PASS }} - FLUX_TOKEN: ${{ secrets.FLUX_TOKEN }} - FLUX_WEBHOOK_URL: ${{ secrets.FLUX_WEBHOOK_URL }} run: | curl --disable --silent --show-error --location --max-time 30 "https://raw.githubusercontent.com/ViBiOh/scripts/main/bootstrap" | bash -s "docker_promote" scripts/docker_promote "${{ secrets.DOCKER_USER }}/$(make name)" "$(make version)" + - name: Flux + env: + FLUX_TOKEN: ${{ secrets.FLUX_TOKEN }} + FLUX_WEBHOOK_URL: ${{ secrets.FLUX_WEBHOOK_URL }} + run: | curl --disable --silent --show-error --location --max-time 30 --header "X-Signature: sha1=$(printf "{}" | openssl dgst -sha1 -hmac "${FLUX_TOKEN}")" --data "{}" "${FLUX_WEBHOOK_URL}" - name: GoReport run: |