forked from aantron/better-enums
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from MisoRobotics/user/rsinnet/feature/update-c…
…make Update CMake minimum version to 3.5
- Loading branch information
Showing
3 changed files
with
43 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# In this directory, run the following command to build this builder. | ||
# $ gcloud builds submit . --config=cloudbuild.yaml | ||
|
||
steps: | ||
- id: 'Inject GitHub credentials' | ||
name: gcr.io/cloud-builders/gcloud | ||
entrypoint: 'bash' | ||
args: [ '-c', 'gcloud secrets versions access latest --secret=miso-deploy-ssh-key > /root/.ssh/id_github' ] | ||
volumes: | ||
- name: 'ssh' | ||
path: /root/.ssh | ||
|
||
- id: 'Set up git repository' | ||
name: gcr.io/cloud-builders/git | ||
entrypoint: 'bash' | ||
args: | ||
- '-c' | ||
- | | ||
chmod 600 /root/.ssh/id_github | ||
cat <<EOF >/root/.ssh/config | ||
Hostname github.com | ||
IdentityFile /root/.ssh/id_github | ||
EOF | ||
ssh-keyscan -t rsa github.com > /root/.ssh/known_hosts | ||
git remote set-url origin [email protected]:MisoRobotics/$REPO_NAME.git | ||
git fetch origin $_BASE_BRANCH:refs/remotes/origin/$_BASE_BRANCH | ||
volumes: | ||
- name: 'ssh' | ||
path: /root/.ssh | ||
|
||
- id: 'Run gitlint' | ||
name: gcr.io/software-builds/miso-cloud-builders/gitlint | ||
args: | ||
- '--commits' | ||
- 'origin/$_BASE_BRANCH..$COMMIT_SHA' | ||
- '-c' | ||
- 'general.ignore-fixup-commits=false' | ||
- '-c' | ||
- 'general.ignore-squash-commits=false' | ||
- '-c' | ||
- 'title-must-not-contain-word.words=WIP,FIXUP,SQUASH' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters