fix php-fpm exited #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: BangunSite Build Action | |
env: | |
IMAGE_NAME: bangunsite:latest | |
on: push | |
jobs: | |
build: | |
name: build image | |
runs-on: ubuntu-latest | |
if: github.ref != 'refs/heads/master' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: docker build -f Dockerfile-prod --tag ${{ env.IMAGE_NAME }} . | |
- name: Test run | |
run: docker run -d --name bangunsite ${{ env.IMAGE_NAME }} | |
- name: Wait for docker to finish building | |
run: sleep 15 | |
- name: Check healty | |
run: | | |
docker exec -i bangunsite curl http://localhost/healty.php | |
docker exec -i bangunsite curl http://localhost:8000 -I |