Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update and rename .github/workflows/dockerimage.yml to dockerimage.yml #53

Merged
merged 16 commits into from
Sep 29, 2019
Merged
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Docker Image CI

on: [push]

jobs:

build:
name: Build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
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 "$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 "$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 "$IMAGE_NAME"
- name: Test Started Blog
run: curl http://localhost:2368 | grep "The professional publishing platform"