Skip to content
master
Switch branches/tags
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Aug 14, 2019
Mar 9, 2021
Oct 11, 2019

docker-compose-actions-workflow

Actions Status

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@v2
      - 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

About

GitHub Actions workflow example using Docker Compose to build and test a multi-container stack

Topics

Resources

License

Releases

No releases published

Packages

No packages published