Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
user-service
Commits
4f57ee8f
Commit
4f57ee8f
authored
3 years ago
by
ChakshuGautam
Browse files
Options
Download
Patches
Plain Diff
ci(github actions): add Docker build and test
parent
ea9b9e70
master
1.0
0.1.8
0.1.7
0.1
v2.4.4
v2.4.3
v2.4.2
v2.4.1
v2.4.0
v2.3.9
v2.3.8
v2.3.7
v2.3.6
v2.3.5
v2.3.4
v2.3.3.1
v2.3.3
v2.3.2
v2.3.1
v2.3.0
v2.2.0
v2.1.7
v2.1.6
v2.1.5
v2.1.4
v2.1.3
v2.1.2
v2.1.1
v2.1.0
v2.0.0
v1.1.0
v1.1
v1.0.6
v1.0.5
v1.0.4
v1.0.3
v1.0.2
v1.0.1
v0.1.6
v0.1.5
v0.1.4
v0.1.3
v0.1.2
v0.1.1
v0.1.0
v0.0.8
v0.0.7
v0.0.6
v0.0.5
v0.0.4
v0.0.3
v0.0.2
v0.0.1
list
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/docker.yml
+25
-0
.github/workflows/docker.yml
with
25 additions
and
0 deletions
+25
-0
.github/workflows/docker.yml
0 → 100644
+
25
−
0
View file @
4f57ee8f
name
:
Docker
on
:
push
:
branches
:
[
master
]
pull_request
:
branches
:
[
master
]
jobs
:
build
:
runs-on
:
ubuntu-20.04
timeout-minutes
:
40
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Build container image
run
:
docker build -t test-container-image .
-
name
:
Launch container
run
:
docker run -dp 3000:3000 test-container-image
timeout-minutes
:
5
-
run
:
docker ps
-
name
:
Wait for Service to start
run
:
while ! curl -s localhost:3000/health; do sleep 1; done
timeout-minutes
:
1
-
name
:
Check API health
run
:
curl -s localhost:3000/health
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets