|
|
@ -48,17 +48,6 @@ jobs:
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
echo "${DOCKER_PASSWORD}" | docker login --username "${DOCKER_USERNAME}" --password-stdin
|
|
|
|
echo "${DOCKER_PASSWORD}" | docker login --username "${DOCKER_USERNAME}" --password-stdin
|
|
|
|
echo "${GITHUB_TOKEN}" | docker login ghcr.io --username $GITHUB_ACTOR --password-stdin
|
|
|
|
echo "${GITHUB_TOKEN}" | docker login ghcr.io --username $GITHUB_ACTOR --password-stdin
|
|
|
|
-
|
|
|
|
|
|
|
|
name: GoReleaser
|
|
|
|
|
|
|
|
if: success()
|
|
|
|
|
|
|
|
env:
|
|
|
|
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GO_RELEASER_GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
run: |
|
|
|
|
|
|
|
|
if [[ $GITHUB_REF == refs/tags/v* ]]; then
|
|
|
|
|
|
|
|
./goreleaser
|
|
|
|
|
|
|
|
elif [[ $GITHUB_REF == refs/heads/master ]]; then
|
|
|
|
|
|
|
|
./goreleaser --snapshot
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
name: Clear
|
|
|
|
name: Clear
|
|
|
|
if: always() && startsWith(github.ref, 'refs/tags/v')
|
|
|
|
if: always() && startsWith(github.ref, 'refs/tags/v')
|
|
|
|