Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
ARNOBeta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ar-noc
ARNOBeta
Commits
324df708
Commit
324df708
authored
2 years ago
by
Nicholas Nakano
Browse files
Options
Downloads
Patches
Plain Diff
Added git-hooks to repo, integrating automation components.
parent
58ad2686
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
arno-init.sh
+4
-0
4 additions, 0 deletions
arno-init.sh
git-hooks/post-merge
+16
-0
16 additions, 0 deletions
git-hooks/post-merge
git-hooks/pre-push
+16
-0
16 additions, 0 deletions
git-hooks/pre-push
with
36 additions
and
0 deletions
arno-init.sh
+
4
−
0
View file @
324df708
...
...
@@ -117,6 +117,10 @@ if [ $? -ne 0 ]; then
exit
1
fi
echo
"Updating local git-hooks..."
cp
-R
git-hooks/
*
.git/hooks/
echo
"All files pulled from S3 successfully. Operation complete."
exit
0
This diff is collapsed.
Click to expand it.
git-hooks/post-merge
0 → 100644
+
16
−
0
View file @
324df708
#!/bin/sh
# Written by Nicholas Nakano
echo
"Starting RClone copy from S3 Bucket..."
# Pull Copy: Reads remote and updates local without deleting files
rclone copy
-P
nautilus-s3:ARNOB
.
--include-from
rclone-include.txt
--no-traverse
if
[
$?
-ne
0
]
;
then
echo
"RClone copy failed."
exit
1
fi
echo
"RClone copy complete."
exit
0
\ No newline at end of file
This diff is collapsed.
Click to expand it.
git-hooks/pre-push
0 → 100644
+
16
−
0
View file @
324df708
#!/bin/sh
# Written by Nicholas Nakano
echo
"Starting RClone copy to S3 Bucket..."
# Push Copy: Reads local and updates remote.
rclone copy
-P
.
nautilus-s3:ARNOB
--include-from
rclone-include.txt
--no-traverse
if
[
$?
-ne
0
]
;
then
echo
"RClone copy failed."
exit
1
fi
echo
"RClone copy complete."
exit
0
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment