1
0
mirror of https://github.com/amir20/dozzle.git synced 2026-01-01 10:37:26 +01:00
Files
dozzle/.github/goreleaser/entrypoint.sh
Amir Raminfar b29fd24f92 Adds npm ci
2019-03-18 20:03:46 -07:00

19 lines
592 B
Bash
Executable File

#!/usr/bin/env bash
if [ -n "$DOCKER_USERNAME" ] && [ -n "$DOCKER_PASSWORD" ]; then
echo "Login to the docker..."
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD $DOCKER_REGISTRY
fi
# Workaround for github actions when access to different repositories is needed.
# Github actions provides a GITHUB_TOKEN secret that can only access the current
# repository and you cannot configure it's value.
# Access to different repositories is needed by brew for example.
if [ -n "$GORELEASER_GITHUB_TOKEN" ] ; then
export GITHUB_TOKEN=$GORELEASER_GITHUB_TOKEN
fi
npm ci
goreleaser $@