Bumps [actions/checkout](https://github.com/actions/checkout) from 3.4.0 to 3.5.1. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3.4.0...v3.5.1) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
27 lines
719 B
YAML
27 lines
719 B
YAML
name: Docker Image CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3.5.1
|
|
- name: Build the Docker image
|
|
run: docker build . --file Dockerfile --tag yosoy-local:latest
|
|
- name: Run simple integration test
|
|
run: |
|
|
docker run -p 3333:80 yosoy-local:latest > yosoy.log &
|
|
sleep 5
|
|
RESULT=$(curl -s -X DELETE -H 'x-api-key: abc123' 'http://0.0.0.0:3333/sample/path?with=params')
|
|
echo "$RESULT"
|
|
if [[ $RESULT =~ '"method":"DELETE"' ]]
|
|
then
|
|
echo 'Test successful'
|
|
exit 0
|
|
else
|
|
echo 'Test failure'
|
|
exit 1
|
|
fi
|