-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
94daefb
commit 26aae36
Showing
5 changed files
with
56 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ Package: googleCloudRunner | |
Type: Package | ||
Title: R Scripts in the Google Cloud via Cloud Run, Cloud Build | ||
and Cloud Scheduler | ||
Version: 0.4.0.9000 | ||
Version: 0.4.1 | ||
Authors@R: c(person("Mark", "Edmondson", email = "[email protected]", | ||
role = c("aut", "cre"), | ||
comment = c(ORCID = "0000-0002-8434-3881")), | ||
|
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
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 |
---|---|---|
@@ -1,16 +1,56 @@ | ||
steps: | ||
- name: gcr.io/cloud-builders/gcloud | ||
entrypoint: bash | ||
args: | ||
- -c | ||
- gcloud secrets versions access latest --secret=github-ssh > /root/.ssh/id_rsa | ||
id: git secret | ||
volumes: | ||
- name: ssh | ||
path: /root/.ssh | ||
- name: gcr.io/cloud-builders/git | ||
entrypoint: bash | ||
args: | ||
- -c | ||
- |- | ||
chmod 600 /root/.ssh/id_rsa | ||
cat <<EOF >known_hosts | ||
github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ== | ||
EOF | ||
cat <<EOF >/root/.ssh/config | ||
Hostname github.com | ||
IdentityFile /root/.ssh/id_rsa | ||
EOF | ||
mv known_hosts /root/.ssh/known_hosts | ||
git config --global user.name "googleCloudRunner" | ||
git config --global user.email "[email protected]" | ||
id: git setup script | ||
volumes: | ||
- name: ssh | ||
path: /root/.ssh | ||
- name: gcr.io/cloud-builders/git | ||
args: | ||
- clone | ||
- [email protected]:MarkEdmondson1234/googleCloudRunner | ||
- '.' | ||
volumes: | ||
- name: ssh | ||
path: /root/.ssh | ||
- name: gcr.io/cloud-builders/docker | ||
args: | ||
- build | ||
- -f | ||
- inst/docker/packages/Dockerfile | ||
- Dockerfile | ||
- --tag | ||
- gcr.io/gcer-public/packagetools:latest | ||
- --tag | ||
- gcr.io/gcer-public/packagetools:$BRANCH_NAME | ||
- gcr.io/gcer-public/packagetools:$BUILD_ID | ||
- '.' | ||
dir: inst/docker/packages/ | ||
- name: gcr.io/cloud-builders/docker | ||
args: | ||
- push | ||
- gcr.io/gcer-public/packagetools | ||
#Generated by googleCloudRunner::cr_build_write at 2020-05-29 16:57:13 | ||
dir: inst/docker/packages/ | ||
timeout: 2400s | ||
#Generated by googleCloudRunner::cr_build_write at 2021-01-23 17:28:55 |