Skip to content

Commit

Permalink
Issue #1224 Fix the Deploy pipelines (#1225)
Browse files Browse the repository at this point in the history
Fixes #1224

# Description
After making the switch to docker build containers some issues popped up
in the deploy pipeline:
- There is an permission issue when writing to the temp directory.
Symlinks cant be created. This has been resolved by changing the temp
directory to a folder inside the docker container
- Pushing the documentation failed because the git name and email
weren't set

# Checklist
<!---
Before requesting review, please go through this checklist:
-->

- [x] Links to correct issue
- [ ] Update changelog, if changes affect users
- [x] PR title starts with ``Issue #nr``, e.g. ``Issue #737``
- [ ] Unit tests were added
- [ ] **If feature added**: Added/extended example
  • Loading branch information
Manangka committed Sep 17, 2024
1 parent 6c862e2 commit 5694d30
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .teamcity/Deploy/DeployProject.kt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ object BuildPackage : BuildType({
id = "Create_package"
workingDir = "imod-python"
scriptContent = """
SET TEMP=%system.teamcity.build.checkoutDir%\tmpdir
SET TMPDIR=%system.teamcity.build.checkoutDir%\tmpdir
SET TMP=%system.teamcity.build.checkoutDir%\tmpdir
pixi run --environment default --frozen rm --recursive --force dist
pixi run --environment default --frozen python -m build
""".trimIndent()
Expand Down Expand Up @@ -273,6 +277,10 @@ object DeployPages : BuildType({
workingDir = "imod-python"
scriptContent = """
echo on
echo "Setup git"
git config --global user.email "[email protected]"
git config --global user.name "SVC TeamCity Ansible"
echo "Checkout imod-python-pages"
git remote set-url origin https://%GH_USER%:%env.GH_TOKEN%@github.com/Deltares/imod-python.git
git fetch origin gh-pages
Expand Down

0 comments on commit 5694d30

Please sign in to comment.