Skip to content

Commit

Permalink
chore: use Docker 'rc' tag for release candidate images (#755)
Browse files Browse the repository at this point in the history
  • Loading branch information
childish-sambino authored Jun 1, 2022
1 parent 86690e7 commit 2537482
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ clean:
rm -rf node_modules

API_DEFINITIONS_SHA=$(shell git log --oneline | grep Regenerated | head -n1 | cut -d ' ' -f 5)
CURRENT_TAG=$(shell [[ "${GITHUB_TAG}" == *"-rc"* ]] && echo "rc" || echo "latest")
docker-build:
docker build -t twilio/twilio-node .
docker tag twilio/twilio-node twilio/twilio-node:${GITHUB_TAG}
docker tag twilio/twilio-node twilio/twilio-node:apidefs-${API_DEFINITIONS_SHA}
docker tag twilio/twilio-node twilio/twilio-node:latest
docker tag twilio/twilio-node twilio/twilio-node:${CURRENT_TAG}

docker-push:
docker push twilio/twilio-node:${GITHUB_TAG}
docker push twilio/twilio-node:apidefs-${API_DEFINITIONS_SHA}
docker push twilio/twilio-node:latest
docker push twilio/twilio-node:${CURRENT_TAG}

0 comments on commit 2537482

Please sign in to comment.