Skip to content

Commit 189f8a3

Browse files
committed
Add automated build
1 parent bc96dfd commit 189f8a3

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.cloudbuild/docker.cloudbuild.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
steps:
2+
- name: 'gcr.io/kaniko-project/executor:v1.3.0'
3+
args:
4+
- --destination=gcr.io/seqr-project/seqr-pipeline-runner:${COMMIT_SHA}
5+
- --destination=gcr.io/seqr-project/seqr-pipeline-runner:${_CUSTOM_BRANCH_TAG}
6+
- --destination=gcr.io/seqr-project/seqr-pipeline-runner:latest
7+
- --dockerfile=v03_pipeline/deploy/Dockerfile
8+
- --cache=true
9+
- --cache-ttl=168h
10+
11+
timeout: 1800s

.github/workflows/prod-release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,27 @@ jobs:
6969
ref: 'refs/tags/${{ env.TAG_NAME }}',
7070
sha: context.sha
7171
})
72+
73+
74+
docker:
75+
runs-on: ubuntu-latest
76+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
77+
steps:
78+
- name: checkout
79+
uses: actions/checkout@v3
80+
with:
81+
ref: ${{ github.event.workflow_run.head_branch }}
82+
83+
- name: authenticate to google cloud
84+
id: "auth"
85+
uses: google-github-actions/auth@v0
86+
with:
87+
workload_identity_provider: "${{ secrets.WORKLOAD_IDENTITY_PROVIDER }}"
88+
service_account: "${{ secrets.RUN_SA_EMAIL }}"
89+
90+
- name: "setup gcloud sdk"
91+
uses: google-github-actions/setup-gcloud@v0
92+
93+
- name: Build and push images
94+
run: |-
95+
gcloud builds submit --quiet --substitutions="COMMIT_SHA=${{ github.event.workflow_run.head_sha }},_CUSTOM_BRANCH_TAG=gcloud-prod" --config .cloudbuild/docker.cloudbuild.yaml --gcs-log-dir=gs://seqr-github-actions-logs/logs .

0 commit comments

Comments
 (0)