New assessment environments #44
Workflow file for this run
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: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- 2324-devel | |
push: | |
branches: | |
- 2324-devel | |
jobs: | |
build: | |
runs-on: lcas | |
steps: | |
- name: Node Js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "^16.13.0 || >=18.0.0" | |
- name: Checkout (GitHub) | |
uses: actions/checkout@v3 | |
- name: What | |
run: echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV | |
- name: Docker Login LCAS | |
if: ${{ github.event_name != 'pull_request' }} | |
uses: docker/login-action@v3 | |
with: | |
registry: lcas.lincoln.ac.uk | |
username: ${{ secrets.LCAS_REGISTRY_PUSHER }} | |
password: ${{ secrets.LCAS_REGISTRY_TOKEN }} | |
- name: Docker Login dockerhub | |
if: ${{ github.event_name != 'pull_request' }} | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USER }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push dev container task | |
if: ${{ github.event_name != 'pull_request' }} | |
uses: devcontainers/[email protected] | |
with: | |
imageName: lcas.lincoln.ac.uk/lcas/devcontainer/ros2-teaching | |
push: always | |
imageTag: ${{ env.BRANCH }} | |
#runCmd: "bash .devcontainer/run-ci.sh" | |
- name: Build (only) dev container task | |
if: ${{ github.event_name == 'pull_request' }} | |
uses: devcontainers/[email protected] | |
with: | |
imageName: lcas.lincoln.ac.uk/lcas/devcontainer/ros2-teaching | |
push: never | |
imageTag: ${{ env.BRANCH }} | |
#runCmd: "bash .devcontainer/run-ci.sh" |