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

Reduce repetition of "services" block in GitHub Actions test.yml #11

Open
cmgriffing opened this issue Dec 5, 2023 · 0 comments
Open
Labels
help wanted Extra attention is needed

Comments

@cmgriffing
Copy link
Contributor

Each job in the test.yml file has this block:

    services:
      test-server:
        credentials:
          username: vexilla
          password: ${{secrets.GITHUB_TOKEN}}
        image: ghcr.io/vexilla/test-server:latest
        ports:
          - 3000:3000
        options: |
          --health-cmd "curl -f http://localhost:3000/manifest.json"

It would be nice to only have to define it once. An initial attempt tried to define a top level services value, but that didn;t seem to be correct for the schema that GitHub expects.

Is there some way to reduce the repetition of that block being in multiple places?

@cmgriffing cmgriffing added the help wanted Extra attention is needed label Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant