Skip to content

Commit

Permalink
reintroduce side-channel loading of deploy_server
Browse files Browse the repository at this point in the history
Co-authored-by: Morten Lied Johansen <morten.lied.johansen@nav.no>
Co-authored-by: Kyrre Havik <kyrre.havik@nav.no>
  • Loading branch information
3 people committed Jan 27, 2025
1 parent 686acf6 commit 28595f5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions actions/deploy/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,20 @@ if [ -n "$IMAGE" ]; then
yq w --inplace "$VARS" image "$IMAGE"
fi

if [ -n "$DEPLOY_SERVER" ]; then
echo "::notice ::DEPLOY_SERVER is deprecated and should not be set, please remove from your workflow"
fi

echo ::group::wget
wget https://storage.googleapis.com/github-deploy-data/$GITHUB_REPOSITORY_OWNER.json --output-document deploy.json
cat deploy.json

#this is a newline!
echo
echo ::endgroup::

export DEPLOY_SERVER=$(jq --raw-output '.DEPLOY_SERVER' < deploy.json)

# if no apikey is set, use use the id-token to get a jwt token for the deploy CLI
if [ -z "$APIKEY" ]; then
if [ -z "$ACTIONS_ID_TOKEN_REQUEST_TOKEN" ] || [ -z "$ACTIONS_ID_TOKEN_REQUEST_URL" ]; then
Expand Down

0 comments on commit 28595f5

Please sign in to comment.