Merge pull request #3 from LCAS/marc-hanheide-patch-prebuild #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'devcontainer CI' | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
tags: | |
- '*' | |
jobs: | |
build_devcontainer: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
config: | |
- cuda-opengl | |
steps: | |
- name: Checkout from github | |
uses: actions/checkout@v3 | |
- name: extract the github reference | |
run: echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV | |
- name: "image name from repo name" | |
id: docker_image_name | |
run: echo "docker_image=${{ github.repository }}" | tr '[:upper:]' '[:lower:]' |sed 's/[^0-9,a-z,A-Z,=,_,\/]/-/g' >>${GITHUB_OUTPUT} | |
- name: Build dev container task | |
uses: devcontainers/[email protected] | |
with: | |
imageName: lcas.lincoln.ac.uk/devcontainer/${{ steps.docker_image_name.outputs.docker_image }} | |
configFile: ./.devcontainer/${{ matrix.config }}/devcontainer.json | |
push: never | |
imageTag: ${{ matrix.config }}-${{ env.BRANCH }} | |
#runCmd: "bash .devcontainer/run-ci.sh" |