Skip to content

Commit 5f88c8b

Browse files
authored
Merge pull request #12 from appuio/chrira-build
Create build.yml
2 parents 38f8edd + 548fb6a commit 5f88c8b

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Build and test
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Build the Image
15+
run: docker build . --file Dockerfile --tag appuio/example-php-docker-helloworld:latest
16+
- name: Run the Container
17+
run: docker run -d --publish 8080:8080 appuio/example-php-docker-helloworld:latest
18+
- name: Test the app
19+
run: sleep 11 && curl -f localhost:8080/health/
20+

0 commit comments

Comments
 (0)