Skip to content

BuildTest

BuildTest #473

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:-$GITHUB_SHA}" \
--build-arg build_git_repo="${PRREPOSITORY:-$GITHUB_REPOSITORY}" \
docker/limited_build/
- name: DockerBuildTestPush
if: ${{ github.event.pull_request.head.sha == '' }}
run: |
docker build -t ci-dagmc-ubuntu \
--build-arg build_git_sha="${PRCOMMITSHA:-$GITHUB_SHA}" \
--build-arg build_git_repo="${PRREPOSITORY:-$GITHUB_REPOSITORY}" \
docker/limited_build/