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

Remove image when the container block is empty #78

Open
yeikel opened this issue Apr 13, 2023 · 0 comments
Open

Remove image when the container block is empty #78

yeikel opened this issue Apr 13, 2023 · 0 comments
Labels
good first issue Good for newcomers recipe

Comments

@yeikel
Copy link
Contributor

yeikel commented Apr 13, 2023

From: https://docs.github.com/en/actions/using-jobs/running-jobs-in-a-container

jobs:
  container-test-job:
    runs-on: ubuntu-latest
    container:
      image: node:14.16     
jobs:
  container-test-job:
    runs-on: ubuntu-latest
    container: node:14.16

If there is more configuration within the container block, it should stay as is. Example:

jobs:
  container-test-job:
    runs-on: ubuntu-latest
    container:
      image: node:14.16
      env:
        NODE_ENV: development
      ports:
        - 80
      volumes:
        - my_docker_volume:/volume_mount
      options: --cpus 1
    steps:
      - name: Check for dockerenv file
        run: (ls /.dockerenv && echo Found dockerenv) || (echo No dockerenv)
@timtebeek timtebeek moved this to Recipes Wanted in OpenRewrite Apr 14, 2023
@timtebeek timtebeek added good first issue Good for newcomers recipe labels Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers recipe
Projects
Status: Recipes Wanted
Development

No branches or pull requests

2 participants