File tree Expand file tree Collapse file tree 2 files changed +53
-0
lines changed Expand file tree Collapse file tree 2 files changed +53
-0
lines changed Original file line number Diff line number Diff line change @@ -167,3 +167,35 @@ jobs:
167167 ghcr.io/${{ steps.get_repo_owner.outputs.repo_owner }}/kernel-pocketcoffea:latest
168168 file : ./kernel-PocketCoffea/Dockerfile
169169 platforms : linux/amd64
170+
171+ kernel-columnflow :
172+ needs : kernel-Coffea
173+ runs-on : ubuntu-latest
174+ steps :
175+ - name : Checkout
176+ uses : actions/checkout@v2
177+ - name : Set env
178+ run : echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
179+ - name : Set up QEMU
180+ uses : docker/setup-qemu-action@v1
181+ - name : Set up Docker Buildx
182+ uses : docker/setup-buildx-action@v1
183+ - name : Login to GitHub Container Registry
184+ uses : docker/login-action@v1
185+ with :
186+ registry : ghcr.io
187+ username : ${{ github.repository_owner }}
188+ password : ${{ secrets.GITHUB_TOKEN }}
189+ - name : Get Repo Owner
190+ id : get_repo_owner
191+ run : echo ::set-output name=repo_owner::$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')
192+ - name : Build container kernel-columnflow
193+ uses : docker/build-push-action@v2
194+ with :
195+ context : ./kernel-columnflow/
196+ outputs : " type=registry,push=true"
197+ tags : |
198+ ghcr.io/${{ steps.get_repo_owner.outputs.repo_owner }}/kernel-columnflow:${{ env.RELEASE_VERSION }}
199+ ghcr.io/${{ steps.get_repo_owner.outputs.repo_owner }}/kernel-columnflow:latest
200+ file : ./kernel-columnflow/Dockerfile
201+ platforms : linux/amd64
Original file line number Diff line number Diff line change 1+ FROM ghcr.io/comp-dev-cms-ita/kernel-coffea
2+
3+ RUN apt-get update && DEBIAN_FRONTEND=noninteractive TZ=Europe/Zurich apt-get -y install \
4+ git-lfs ninja-build
5+
6+ RUN (echo cf_analysis; \
7+ echo cf_analysis; \
8+ echo CR; \
9+ echo cms_minimal; \
10+ echo False) | bash -c "$(curl -Ls https://raw.githubusercontent.com/columnflow/columnflow/master/create_analysis.sh)"
11+
12+ WORKDIR /usr/local/share/comp-dev-cms-ita/cf_analysis
13+
14+ SHELL ["/bin/bash" , "-c" ]
15+ ENV PATH=/usr/local/share/comp-dev-cms-ita/cf_analysis/data/software/venvs/cf_dev_9b04c75c/bin/:$PATH
16+
17+ RUN source setup.sh
18+ RUN sleep 5
19+ RUN tests/run_all
20+
21+ RUN echo "source /usr/local/share/comp-dev-cms-ita/cf_analysis/setup.sh" >> ~/.bashrc
You can’t perform that action at this time.
0 commit comments