Skip to content

Add setup instructions for using container in CICD pipelines #31

@derickson2402

Description

@derickson2402

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

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions