fix: fix typo in branch on Docker action pipeline - wrong line break #2
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: Docker Build and Test | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Build and run Docker container | |
run: | | |
docker-compose build | |
docker-compose up -d | |
- name: Check if Docker containers are running | |
run: | | |
if docker ps | grep -q 'app'; then | |
echo "Docker containers are running." | |
else | |
echo "Docker containers are not running." && exit 1 | |
fi |