Skip to content

Commit

Permalink
ci: Trying to debug the flux
Browse files Browse the repository at this point in the history
  • Loading branch information
ViBiOh committed Feb 15, 2021
1 parent 47eb54a commit 14644e4
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches:
- main
env:
SCRIPTS_NO_INTERACTIVE: 'true'
SCRIPTS_NO_INTERACTIVE: "true"
defaults:
run:
shell: bash
Expand All @@ -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'
Expand All @@ -40,16 +40,14 @@ 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"
DOCKER_IMAGE="${{ secrets.DOCKER_USER }}/$(make name)" IMAGE_VERSION="$(make version)" ./scripts/release build docker
publish:
name: Publish
if:
github.event_name == 'push' && github.ref == 'refs/heads/main' && !contains(toJSON(github.event.commits.*.message),
'[skip ci]')
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && !contains(toJSON(github.event.commits.*.message), '[skip ci]')
runs-on: ubuntu-latest
needs: package
steps:
Expand All @@ -66,7 +64,10 @@ jobs:
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}"
HMAC_SIGNATURE="$(printf "{}" | openssl dgst -sha1 -hmac "${FLUX_TOKEN})"
echo $HMAC_SIGNATURE
echo $FLUX_WEBHOOK_URL
curl --disable --silent --show-error --location --max-time 30 --header "X-Signature: sha1=${HMAC_SIGNATURE}" --data "{}" "${FLUX_WEBHOOK_URL}"
- name: GoReport
run: |
curl --disable --silent --show-error --location --max-time 30 -X POST https://goreportcard.com/checks?repo=github.com/${GITHUB_REPOSITORY}

0 comments on commit 14644e4

Please sign in to comment.