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

Add setup instructions for using container in CICD pipelines #31

Open
derickson2402 opened this issue Mar 31, 2022 · 0 comments
Open

Add setup instructions for using container in CICD pipelines #31

derickson2402 opened this issue Mar 31, 2022 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@derickson2402
Copy link
Owner

On a whim I set up CICD testing for one of my EECS projects, and I figured I'd use this container for it. I am using addnab/docker-run-action@v3 for the workflow, and so I need to manually specify options rather than just using caen .... I found that I only needed to set the dir mount option, since the other options are only used in tty or interactive mode. The following is a copy of the file I used, adapted from addnab/docker-run-action:

name: Test

on:
  push:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout 
        uses: actions/checkout@v2

      - name: Test with CAEN
        uses: addnab/docker-run-action@v3
        with:
          registry: gcr.io
          image: derickson2402/dockerized-caen:latest
          options: -v ${{ github.workspace }}:/code
          run: |
            echo "Running Script"
            /work/run-script
@derickson2402 derickson2402 added documentation Improvements or additions to documentation enhancement New feature or request labels Mar 31, 2022
@derickson2402 derickson2402 self-assigned this Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant