Skip to content

Commit

Permalink
building docker with lstenv
Browse files Browse the repository at this point in the history
  • Loading branch information
vuillaut authored Apr 26, 2024
1 parent e64baa2 commit 0d26ba9
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: lstenv
channels:
- default
- conda-forge
dependencies:
- lstchain
- lstmcpipe

0 comments on commit 0d26ba9

Please sign in to comment.