Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ColossalAI
Commits
788e07db
Unverified
Commit
788e07db
authored
May 22, 2023
by
Frank Lee
Committed by
GitHub
May 22, 2023
Browse files
[workflow] fixed the docker build workflow (#3794)
* [workflow] fixed the docker build workflow * polish code
parent
4d29c0f8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
11 deletions
+8
-11
.github/workflows/release_docker_after_publish.yml
.github/workflows/release_docker_after_publish.yml
+5
-8
.github/workflows/report_test_coverage.yml
.github/workflows/report_test_coverage.yml
+3
-3
No files found.
.github/workflows/release_docker_after_
merge
.yml
→
.github/workflows/release_docker_after_
publish
.yml
View file @
788e07db
name
:
Publish Docker Image to DockerHub after
Merge
name
:
Publish Docker Image to DockerHub after
Publish
on
:
on
:
workflow_dispatch
:
workflow_dispatch
:
pull_request
:
release
:
paths
:
types
:
[
published
]
-
'
version.txt'
types
:
-
closed
jobs
:
jobs
:
release
:
release
:
...
@@ -50,7 +47,7 @@ jobs:
...
@@ -50,7 +47,7 @@ jobs:
-
uses
:
actions/setup-python@v2
-
uses
:
actions/setup-python@v2
with
:
with
:
python-version
:
'
3.8.14
'
python-version
:
"
3.8.14
"
-
name
:
Install requests
-
name
:
Install requests
run
:
pip install requests
run
:
pip install requests
...
...
.github/workflows/report_test_coverage.yml
View file @
788e07db
...
@@ -10,7 +10,7 @@ jobs:
...
@@ -10,7 +10,7 @@ jobs:
report-test-coverage
:
report-test-coverage
:
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
steps
:
steps
:
-
name
:
'
Download
artifact
'
-
name
:
"
Download
artifact
"
uses
:
actions/github-script@v6
uses
:
actions/github-script@v6
with
:
with
:
script
:
|
script
:
|
...
@@ -31,7 +31,7 @@ jobs:
...
@@ -31,7 +31,7 @@ jobs:
let fs = require('fs');
let fs = require('fs');
fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/report.zip`, Buffer.from(download.data));
fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/report.zip`, Buffer.from(download.data));
-
name
:
'
Unzip
artifact
'
-
name
:
"
Unzip
artifact
"
id
:
unzip
id
:
unzip
run
:
|
run
:
|
unzip report.zip
unzip report.zip
...
@@ -58,7 +58,7 @@ jobs:
...
@@ -58,7 +58,7 @@ jobs:
echo "</details>" >> coverage_report.txt
echo "</details>" >> coverage_report.txt
mv coverage_report.txt coverage.txt
mv coverage_report.txt coverage.txt
-
name
:
'
Comment
on
PR
'
-
name
:
"
Comment
on
PR
"
if
:
steps.unzip.outputs.hasReport == 'true'
if
:
steps.unzip.outputs.hasReport == 'true'
uses
:
actions/github-script@v6
uses
:
actions/github-script@v6
with
:
with
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment