Skip to content

add apptainer build functionality for python #56

add apptainer build functionality for python

add apptainer build functionality for python #56

Workflow file for this run

# Copyright (c) 2024 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Apptainer CI
on:
pull_request:
push:
branches:
- '*/apptainer_python'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions: read-all
jobs:
setup-build:
runs-on: ${{ github.repository_owner == 'intel' && 'intel-ubuntu-latest' || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4
- uses: eWaterCycle/setup-apptainer@v2.0.0
with:
apptainer-version: 1.3.3
- name: Apptainer login to registry
env:
APPTAINER_DOCKER_USERNAME: ${{ secrets.REGISTRY_USER }}
APPTAINER_DOCKER_PASSWORD: ${{ secrets.REGISTRY_TOKEN }}
run: apptainer remote logout && apptainer registry login -u ${{ secrets.REGISTRY_USER }} -p ${{ secrets.REGISTRY_TOKEN }} docker://${{ secrets.REGISTRY }}
- uses: intel/ai-containers/apptainer@sramakr1/apptainer_python
with:
registry: oras://${{ secrets.REGISTRY }}
repo: ${{ secrets.REPO }}-apptainer