Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map to env var before using in script #102

Merged
merged 1 commit into from
Nov 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions deploy/jupyterhub/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ jobs:

cd $REPO
git pull
echo "Using tag $(imageTag)"
sed "s/<TAG>/$(imageTag)/g" docker/jupyterhub/.env.staging > ~/secrets/compose/.env
echo "Using tag $IMAGE_TAG"
sed "s/<TAG>/$IMAGE_TAG/g" docker/jupyterhub/.env.staging > ~/secrets/compose/.env

IMAGE=${{ variables.imageNameNexus }}:$(imageTag)
IMAGE=${{ variables.imageNameNexus }}:$IMAGE_TAG
echo "Pulling $IMAGE"
docker pull $IMAGE

Expand All @@ -84,6 +84,8 @@ jobs:
echo "starting service."
sudo systemctl start jupyterhub.service
fi
env:
IMAGE_TAG: $(imageTag)

- job: deploy_prod
condition: ${{ eq(variables['environment'], 'prod') }}
Expand Down Expand Up @@ -122,10 +124,10 @@ jobs:

cd $REPO
git pull
echo "Using tag $(imageTag)"
sed "s/<TAG>/$(imageTag)/g" docker/jupyterhub/.env.prod > ~/secrets/compose/.env
echo "Using tag $IMAGE_TAG"
sed "s/<TAG>/$IMAGE_TAG/g" docker/jupyterhub/.env.prod > ~/secrets/compose/.env

IMAGE=${{ variables.imageNameNexus }}:$(imageTag)
IMAGE=${{ variables.imageNameNexus }}:$IMAGE_TAG
echo "Pulling $IMAGE"
docker pull $IMAGE

Expand All @@ -146,3 +148,5 @@ jobs:
echo "starting service."
sudo systemctl start jupyterhub.service
fi
env:
IMAGE_TAG: $(imageTag)