Compare commits
5 Commits
41025e0c91
...
fe7a254f25
| Author | SHA1 | Date |
|---|---|---|
|
|
fe7a254f25 | |
|
|
7790a8c4e7 | |
|
|
7bbb4f17f1 | |
|
|
8be924f0ff | |
|
|
cd5c99efda |
|
|
@ -6,13 +6,13 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: ni-dataops.unf-montreal.ca
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push-image:
|
build-and-push-image:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
image: [datalad-apptainer, deface, dicom_indexer, heudiconv]
|
image: [datalad, datalad-apptainer, deface, dicom_indexer, heudiconv]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
@ -26,14 +26,14 @@ jobs:
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.REGISTRY }}
|
||||||
username: ${{ env.NIDATAOPS_BOT_NAME }}
|
username: ${{ vars.NIDATAOPS_BOT_NAME }}
|
||||||
password: ${{ secrets.NIDATAOPS_BOT_REGISTRY_TOKEN }}
|
password: ${{ secrets.NIDATAOPS_BOT_REGISTRY_TOKEN }}
|
||||||
|
|
||||||
- name: Extract metadata (tags, labels) for Docker
|
- name: Extract metadata (tags, labels) for Docker
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.GITHUB_REPOSITORY_OWNER }}.${{ matrix.image }}
|
images: ${{ env.REGISTRY }}/${{ env.GITHUB_REPOSITORY_OWNER }}/${{ matrix.image }}
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
|
|
@ -54,6 +54,7 @@ build_all_dockers:
|
||||||
parallel:
|
parallel:
|
||||||
matrix:
|
matrix:
|
||||||
- IMAGE_NAME:
|
- IMAGE_NAME:
|
||||||
|
- datalad
|
||||||
- datalad-docker
|
- datalad-docker
|
||||||
- datalad-apptainer
|
- datalad-apptainer
|
||||||
- heudiconv
|
- heudiconv
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ RUN apk add --no-cache \
|
||||||
make \
|
make \
|
||||||
util-linux-dev
|
util-linux-dev
|
||||||
|
|
||||||
ARG APPTAINER_COMMITISH="main"
|
ARG APPTAINER_COMMITISH="v1.3.0"
|
||||||
ARG MCONFIG_OPTIONS="--with-suid"
|
ARG MCONFIG_OPTIONS="--with-suid"
|
||||||
WORKDIR $GOPATH/src/github.com/apptainer
|
WORKDIR $GOPATH/src/github.com/apptainer
|
||||||
RUN git clone https://github.com/apptainer/apptainer.git \
|
RUN git clone https://github.com/apptainer/apptainer.git \
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM python:3.11-alpine as builder
|
||||||
|
|
||||||
|
RUN apk update && apk add --no-cache curl bzip2 gcc libffi-dev musl-dev
|
||||||
|
|
||||||
|
RUN python -m pip install datalad pytest ssh_agent_setup
|
||||||
|
|
||||||
|
FROM python:3.11-alpine
|
||||||
|
COPY --from=builder /usr/local /usr/local
|
||||||
|
|
||||||
|
RUN apk update && apk add --no-cache git openssh-client git-annex
|
||||||
Loading…
Reference in New Issue