You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/build-pipeline.yml
+24-1Lines changed: 24 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,7 @@ jobs:
85
85
run: |
86
86
poetry run pytest --junitxml=build/reports/pytest.xml --cov=podaac/ --cov-report=xml:build/reports/coverage.xml -m "not aws and not integration" tests/
87
87
- name: SonarCloud Scan
88
-
uses: sonarsource/sonarcloud-github-action@master
88
+
uses: sonarsource/sonarqube-scan-action@v4
89
89
env:
90
90
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
91
91
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
@@ -243,6 +243,29 @@ jobs:
243
243
pull: true
244
244
tags: ${{ steps.meta.outputs.tags }}
245
245
labels: ${{ steps.meta.outputs.labels }}
246
+
- name: Deploy Harmony
247
+
env:
248
+
ENV: ${{ env.venue }}
249
+
CMR_USER: ${{ secrets.CMR_USER }}
250
+
CMR_PASS: ${{ secrets.CMR_PASS }}
251
+
if: |
252
+
github.ref == 'refs/heads/main' ||
253
+
startsWith(github.ref, 'refs/heads/release')
254
+
working-directory: deployment
255
+
run:
256
+
poetry run python harmony_deploy.py --tag ${{ env.software_version }}
257
+
- name: Create Release
258
+
id: create_release
259
+
if: |
260
+
github.ref == 'refs/heads/main'
261
+
uses: softprops/action-gh-release@v2
262
+
with:
263
+
tag_name: "${{ env.software_version }}"# Use the tag that triggered the action
264
+
release_name: Release v{{ env.software_version }}
265
+
draft: false
266
+
generate_release_notes: true
267
+
token: ${{ secrets.GITHUB_TOKEN }}
268
+
246
269
# As of 2023/01/23 these steps below for scanning the Docker image with Snyk are failing. I've tried both the official Snyk
247
270
# action https://github.com/snyk/actions/tree/master/docker and this method below of manually calling the CLI.
248
271
# The error when using the official Snyk action is
0 commit comments