Skip to content

Commit

Permalink
ci(github): [skip ci] Conditionning docker step
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Dec 6, 2022
1 parent b337d53 commit a50ba88
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:
- released

env:
SCRIPTS_NO_INTERACTIVE: 'true'
SCRIPTS_NO_INTERACTIVE: "true"

defaults:
run:
Expand All @@ -37,7 +37,7 @@ jobs:
- name: Setup Golang
uses: actions/setup-go@v3
with:
go-version: '^1.19'
go-version: "^1.19"
- name: Build
run: make init
- name: GPG
Expand All @@ -57,9 +57,10 @@ jobs:
export GIT_TAG="$(basename ${{ github.ref }})"
scripts/release build assets clean
- name: Docker
if: ${{ env.docker_user != '' }}
env:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_USER: ${{ env.docker_user }}
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
run: |
curl --disable --silent --show-error --location --max-time 30 "https://raw.githubusercontent.com/ViBiOh/scripts/main/bootstrap" | bash -s -- "-c" "docker_promote"
scripts/docker_promote "${{ secrets.DOCKER_USER }}/$(make name)" "$(make version-date)" "$(basename ${{ github.ref }})"
scripts/docker_promote "${{ env.DOCKER_USER }}/$(make name)" "$(make version-date)" "$(basename ${{ github.ref }})"

0 comments on commit a50ba88

Please sign in to comment.