Fix production deploy (#3498)

`get_binaries.sh` no longer use `RELEASE` environmental variable, it
just use `DOCKER_TAG`
This commit is contained in:
Sergey Melnikov
2023-01-31 13:36:25 +01:00
committed by GitHub
parent 5e08b35f53
commit 0806a46c0c

View File

@@ -183,14 +183,7 @@ jobs:
export DOCKER_TAG=${{ inputs.dockerTag }}
cd "$(pwd)/.github/ansible"
if [[ "$GITHUB_REF_NAME" == "main" ]]; then
./get_binaries.sh
elif [[ "$GITHUB_REF_NAME" == "release" ]]; then
RELEASE=true ./get_binaries.sh
else
echo "GITHUB_REF_NAME (value '$GITHUB_REF_NAME') is not set to either 'main' or 'release'"
exit 1
fi
./get_binaries.sh
eval $(ssh-agent)
echo "${{ secrets.TELEPORT_SSH_KEY }}" | tr -d '\n'| base64 --decode >ssh-key