Skip to content

Commit

Permalink
fix: syntax problem
Browse files Browse the repository at this point in the history
  • Loading branch information
mmornati committed Aug 19, 2019
1 parent 5a22fba commit 0238162
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,21 @@ jobs:

steps:
- uses: actions/checkout@v1
- name: Configure
id: config
env:
- env:
IMAGE_NAME: mmornati/docker-ghostblog
- name: Checkout Official Images
run: git clone https://github.com/docker-library/official-images.git official-images
- name: Build the Docker image
run: docker build . --file Dockerfile --tag "${{ steps.config.env.IMAGE_NAME }}"
run: docker build . --file Dockerfile --tag "$IMAGE_NAME"
- name: Start New Docker
run: docker run -d --name blogtest -p 2368:2368 -e WEB_URL=http://localhost:2368 -e NODE_ENV=production "${{ steps.config.env.IMAGE_NAME }}"
run: docker run -d --name blogtest -p 2368:2368 -e WEB_URL=http://localhost:2368 -e NODE_ENV=production "$IMAGE_NAME"
- name: Wait for container startup
run: until $(curl --output /dev/null --silent --head --fail http://localhost:2368); do
echo "waiting for ghostblog container...";
sleep 10;
done
- name: Test with Official Images
run: official-images/test/run.sh "${{ steps.config.env.IMAGE_NAME }}"
run: official-images/test/run.sh "$IMAGE_NAME"
- name: Test Started Blog
run: curl http://localhost:2368 | grep "The professional publishing platform"

0 comments on commit 0238162

Please sign in to comment.