Skip to content
GitHub Actions workflow example using Docker Compose to build and test a multi-container stack
Python Dockerfile
Branch: master
Clone or download
Latest commit fa5cdee Aug 14, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows Add app and workflow Aug 14, 2019
Dockerfile Add app and workflow Aug 14, 2019
LICENSE Initial commit Aug 14, 2019
README.md Update README Aug 14, 2019
app.py Add app and workflow Aug 14, 2019
docker-compose.yml Add app and workflow Aug 14, 2019
requirements.txt

README.md

docker-compose-actions-workflow

This is a GitHub Actions workflow example to demonstrate building and testing a multi-container stack using docker-compose.

This sample is based on the Get started with Docker Compose documentation.

GitHub Actions Workflow

push.yml

name: Docker Compose Actions Workflow
on: push
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: Build the stack
      run: docker-compose up -d
    - name: Test
      run: docker run --network container:webapp-frontend appropriate/curl -s --retry 10 --retry-connrefused http://localhost:5000/

You can browse a run for this example here.

For more about testing containers before release see Smoke Testing.

License

MIT License - see the LICENSE file for details

You can’t perform that action at this time.