diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..929b295 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,20 @@ +name: publish + +on: [push] + +jobs: +publish-docker: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Login to GitHub Container Registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build docker image + run: | + docker build . --tag ghcr.io/cta-observatory/lstdock:latest + docker run ghcr.io/cta-observatory/lstdock:latest + docker push ghcr.io/cta-observatory/lstdock:latest \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..aa96a40 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM docker.io/condaforge/miniforge3 + +LABEL maintainer="CTA-LST - https://github.com/cta-observatory" + +RUN conda env update -n base -f environment.yml + +RUN conda clean -a diff --git a/environment.yml b/environment.yml new file mode 100644 index 0000000..8aeb09d --- /dev/null +++ b/environment.yml @@ -0,0 +1,8 @@ +name: lstenv +channels: + - default + - conda-forge +dependencies: + - lstchain + - lstmcpipe + \ No newline at end of file