Skip to content

Commit

Permalink
Add docker-example workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Dumais <[email protected]>
  • Loading branch information
marcdumais-work committed Mar 5, 2024
1 parent c15a308 commit 708f628
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
43 changes: 43 additions & 0 deletions .github/workflows/docker-example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: docker-example

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:

build-and-test:
name: Build image
runs-on: ubuntu-latest
timeout-minutes: 15

steps:
- uses: actions/checkout@v3

# - name: Build example-docker
# run: |
# cd examples/docker
# docker build -t tte .

- name: Build example-docker
uses: nick-invision/retry@v3
with:
timeout_minutes: 5
retry_wait_seconds: 15
max_attempts: 3
retry_on: error
command: |
cd examples/docker
docker build -t tte .
on_retry_command: cd ../..

- name: run docker image
run: |
docker run --init -d -p 0.0.0.0:4000:4000 tte
- name: test
run: |
wget --tries=10 --wait=30 http://localhost:4000
cat index.html | grep "Theia-Trace Example Application"
1 change: 0 additions & 1 deletion examples/docker/example-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"@theia/cli": "1.45.1"
},
"scripts": {
"prepare": "theia build",
"start": "theia start",
"watch": "theia build --watch"
},
Expand Down

0 comments on commit 708f628

Please sign in to comment.