Skip to content

Commit 96c2bf6

Browse files
authored
Update Docker build CI/CD action (#789)
* Add the de novo pipeline to Dockstore. * Update docker ci/cd.
1 parent 560975e commit 96c2bf6

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/sv_pipeline_docker.yml

+12-8
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
image_tag: ${{ steps.image_tag.outputs.IMAGE_TAG }}
3131
steps:
3232
- name: Checkout code
33-
uses: actions/checkout@v3
33+
uses: actions/checkout@v4
3434
with:
3535
# By default, this checks out only the current commit;
3636
# however, since a diff between the current commit and
@@ -118,13 +118,13 @@ jobs:
118118
python-version: ['3.8']
119119
steps:
120120
- name: Checkout code
121-
uses: actions/checkout@v3
121+
uses: actions/checkout@v4
122122
with:
123123
# See the comment on build_args_job.
124124
fetch-depth: 0
125125

126126
- name: Setup Python
127-
uses: actions/setup-python@v2
127+
uses: actions/setup-python@v5
128128
with:
129129
python-version: ${{ matrix.python-version }}
130130

@@ -155,30 +155,34 @@ jobs:
155155
DOCKERS_GCP: "./inputs/values/dockers.json"
156156
steps:
157157
- name: Checkout code
158-
uses: actions/checkout@v3
158+
uses: actions/checkout@v4
159159
with:
160160
# See the comment on build_args_job.
161161
fetch-depth: 0
162162
# Authenticates git using the bot's access token.
163163
token: ${{ secrets.BOT_PAT }}
164164

165165
- name: Setup Python
166-
uses: actions/setup-python@v3
166+
uses: actions/setup-python@v5
167167
with:
168168
python-version: ${{ matrix.python-version }}
169169

170170
- name: Azure login
171-
uses: azure/docker-login@v1
171+
uses: azure/docker-login@v2
172172
with:
173173
login-server: ${{ secrets.AZ_CR }}
174174
username: ${{ secrets.AZ_USERNAME }}
175175
password: ${{ secrets.AZ_PASSWORD }}
176176

177+
- name: GCP login
178+
uses: google-github-actions/[email protected]
179+
with:
180+
credentials_json: '${{ secrets.GCP_SA_CREDENTIALS }}'
181+
177182
- name: Setup gcloud CLI
178-
uses: google-github-actions/setup-gcloud@v0.3.0
183+
uses: google-github-actions/setup-gcloud@v2
179184
with:
180185
project_id: ${{ secrets.GCP_PROJECT_ID }}
181-
service_account_key: ${{ secrets.GCP_GCR_SA_KEY }}
182186
# xref: https://github.com/google-github-actions/setup-gcloud#inputs
183187
# If you need to set `export_default_credentials: true`
184188
# make sure to pass the `--disable-git-protect` flag to

0 commit comments

Comments
 (0)