Commit e20d25c5 authored by Erick Hitter's avatar Erick Hitter

Use correct CI path variable

parent 852f336a
Pipeline #752 failed with stages
in 2 minutes and 44 seconds
...@@ -72,21 +72,21 @@ svn checkout --depth immediates "$SVN_URL" "$SVN_DIR" ...@@ -72,21 +72,21 @@ svn checkout --depth immediates "$SVN_URL" "$SVN_DIR"
cd "$SVN_DIR" cd "$SVN_DIR"
svn update --set-depth infinity trunk svn update --set-depth infinity trunk
# Ensure we are in the $CI_PROJECT_DIR directory, just in case
echo "➤ Copying files..." echo "➤ Copying files..."
cd "$CI_BUILDS_DIR" cd "$CI_PROJECT_DIR"
git config --global user.email "git-contrib+ci@ethitter.com" git config --global user.email "git-contrib+ci@ethitter.com"
git config --global user.name "Erick Hitter (GitLab CI)" git config --global user.name "Erick Hitter (GitLab CI)"
# If there's no .gitattributes file, write a default one into place # If there's no .gitattributes file, write a default one into place
if [[ ! -e "$CI_BUILDS_DIR/.gitattributes" ]]; then if [[ ! -e "$CI_PROJECT_DIR/.gitattributes" ]]; then
cat > "$CI_BUILDS_DIR/.gitattributes" <<-EOL cat > "$CI_PROJECT_DIR/.gitattributes" <<-EOL
/.gitattributes export-ignore /.gitattributes export-ignore
/.gitignore export-ignore /.gitignore export-ignore
/.github export-ignore /.github export-ignore
EOL EOL
# Ensure we are in the $CI_BUILDS_DIR directory, just in case
# The .gitattributes file has to be committed to be used # The .gitattributes file has to be committed to be used
# Just don't push it to the origin repo :) # Just don't push it to the origin repo :)
git add .gitattributes && git commit -m "Add .gitattributes file" git add .gitattributes && git commit -m "Add .gitattributes file"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment