Skip to content

Commit

Permalink
Merge pull request #1058 from DFE-Digital/1840-update-makefile
Browse files Browse the repository at this point in the history
Add console command to Makefile
  • Loading branch information
malcolmbaig authored Apr 9, 2024
2 parents 0a1df39 + bec43c3 commit 0c028b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -183,3 +183,6 @@ production-cluster:
get-cluster-credentials: set-azure-account ## make <config> get-cluster-credentials [ENVIRONMENT=<clusterX>]
az aks get-credentials --overwrite-existing -g ${CLUSTER_RESOURCE_GROUP_NAME} -n ${CLUSTER_NAME}
kubelogin convert-kubeconfig -l $(if ${GITHUB_ACTIONS},spn,azurecli)

console: get-cluster-credentials
kubectl -n tra-${DEPLOY_ENV} exec -ti --tty deployment/find-a-lost-trn-${DEPLOY_ENV} -- /bin/sh -c 'cd /app && /usr/local/bin/bundle exec rails c'

0 comments on commit 0c028b7

Please sign in to comment.