github.com/drone/go-convert@v0.0.0-20240307072510-6bd371c65e61/convert/github/testdata/services/redis.yaml (about)

     1  # https://docs.github.com/en/actions/using-containerized-services/about-service-containers
     2  
     3  name: Redis Service Example
     4  
     5  # on: push
     6  
     7  jobs:
     8    # Label of the container job
     9    runner-job:
    10      # You must use a Linux environment when using service containers or container jobs
    11      runs-on: ubuntu-latest
    12  
    13      # Service containers to run with `runner-job`
    14      services:
    15        # Label used to access the service container
    16        redis:
    17          # Docker Hub image
    18          image: redis
    19          #
    20          ports:
    21            # Opens tcp port 6379 on the host and service container
    22            - 6379:6379