-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
93119af
commit 3a684ba
Showing
4 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# TODO: | ||
# - only build when the recipe file changes, or on a periodic schedule | ||
|
||
name: ilab-base dev (singularity) | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
|
||
build-container-dev: | ||
|
||
env: | ||
SINGULARITY_IMAGE: quay.io/singularity/singularity:v3.11.5 | ||
CONTAINER_NAME: ilab-base-singularity | ||
CONTAINER_DEFINITION_FILE_PATH: singularity/ilab-base/ilab-base.def | ||
CONTAINER_TAG: latest | ||
|
||
runs-on: ubuntu-latest | ||
|
||
container: | ||
image: quay.io/singularity/singularity:v3.11.5 | ||
options: --privileged | ||
|
||
name: Check Software | ||
steps: | ||
|
||
- name: Check out code for the container builds | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build Container | ||
run: | | ||
sudo -E singularity build container.sif singularity/ilab-base/ilab-base.def | ||
- name: Login and Deploy Container | ||
if: (github.event_name != 'pull_request') | ||
env: | ||
keepgoing: ${{ env.keepgoing }} | ||
run: | | ||
echo ${{ secrets.GITHUB_TOKEN }} | singularity remote login -u ${{ secrets.GHCR_USERNAME }} --password-stdin oras://ghcr.io | ||
singularity push container.sif oras://ghcr.io/nasa-nccs-hpda/${CONTAINER_NAME}:${CONTAINER_TAG} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Bootstrap: docker | ||
From: busybox:latest | ||
|
||
%runscript | ||
echo "Hold me closer... tiny container :) :D" |