Skip to content

Merge pull request #83 from LSSTDESC/additional-info-change #52

Merge pull request #83 from LSSTDESC/additional-info-change

Merge pull request #83 from LSSTDESC/additional-info-change #52

Workflow file for this run

name: Build Docker image
# Shamelessly cribbed from https://docs.docker.com/build/ci/github-actions/test-before-push/
# with minor modifications
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
TEST_TAG: user/app:test
LATEST_TAG: user/app:latest
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and export to Docker
uses: docker/build-push-action@v6
with:
load: true
tags: ${{ env.TEST_TAG }}
build-args: BUILDKIT_CONTEXT_KEEP_GIT_DIR=1
# TODO actually have this do something with test data
- name: Test
run: |
docker run --rm ${{ env.TEST_TAG }} -c "fit_dataset --help"