Skip to content

BuildTest

BuildTest #356

Workflow file for this run

name: BuildTest
on:
push:
pull_request:
schedule:
- cron: "0 0 * * *"
jobs:
docker-build-test-ubuntu:
runs-on: ubuntu-latest
name: Aegis Build Test (in pre-built dependency environment)
env:
PRCOMMITSHA : ${{ github.event.pull_request.head.sha }}
steps:
# Check out repo to get Dockerfile
- name: Checkout
uses: actions/checkout@v2
# Build container and run tests from limited_build Dockerfile
- name: PrintGithubContext
run: echo $PRCOMMITSHA
- name: DockerBuildTestPull
if: ${{ github.event.pull_request.head.sha != '' }}
run: docker build -t ci-dagmc-ubuntu --build-arg build_git_sha=$PRCOMMITSHA docker/limited_build/
- name: DockerBuildTestPush
if: ${{ github.event.pull_request.head.sha == '' }}
run: docker build -t ci-dagmc-ubuntu --build-arg build_git_sha=$GITHUB_SHA docker/limited_build/