-
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.
Merge pull request #42 from NREL/pp/status_upgrades
Status upgrades + Apptainer
- Loading branch information
Showing
11 changed files
with
145 additions
and
14 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,55 @@ | ||
name: Apptainer Build and Publish | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build-publish-container: | ||
name: Build and Publish for ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
artifact_name: gaps.sif | ||
asset_name: gaps-linux-amd64 | ||
body: GAPs Apptainer Image (ubuntu-latest) | ||
# - os: windows-latest | ||
# artifact_name: mything.exe | ||
# asset_name: mything-windows-amd64 | ||
# - os: macos-latest | ||
# artifact_name: mything | ||
# asset_name: mything-macos-amd64 | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
container: | ||
image: quay.io/singularity/singularity:v3.8.1 | ||
options: --privileged | ||
|
||
steps: | ||
|
||
- name: Check out code for the container builds | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build Container | ||
run: | | ||
singularity build gaps.sif Apptainer | ||
# - name: Login and Deploy Container | ||
# run: | | ||
# echo ${{ secrets.GITHUB_TOKEN }} | singularity remote login -u ${{ secrets.GHCR_USERNAME }} --password-stdin oras://ghcr.io | ||
# singularity push container.sif oras://ghcr.io/${GITHUB_REPOSITORY}:${tag} | ||
|
||
- name: Upload container to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: ${{ matrix.artifact_name }} | ||
asset_name: ${{ matrix.asset_name }} | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
body: ${{ matrix.body }} |
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,18 @@ | ||
Bootstrap: docker | ||
From: python:3.11 | ||
|
||
%labels | ||
Author Paul Pinchuk | ||
Maintainer [email protected] | ||
URL https://github.com/NREL/gaps | ||
|
||
%post | ||
echo "Installing vim" | ||
apt-get update && apt-get -y upgrade | ||
apt-get -y --allow-unauthenticated install vim | ||
|
||
echo "Installing GAPs..." | ||
pip install NREL-gaps | ||
|
||
%runscript | ||
"$@" |
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,24 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
GAPs CLI entry points. | ||
""" | ||
import click | ||
|
||
from gaps.version import __version__ | ||
from gaps.cli.status import status_command | ||
|
||
|
||
@click.group() | ||
@click.version_option(version=__version__) | ||
@click.pass_context | ||
def main(ctx): | ||
"""GAPs command line interface.""" | ||
ctx.ensure_object(dict) | ||
|
||
|
||
main.add_command(status_command(), name="status") | ||
|
||
|
||
if __name__ == "__main__": | ||
# pylint: disable=no-value-for-parameter | ||
main(obj={}) |
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
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
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
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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
"""GAPs Version Number. """ | ||
|
||
__version__ = "0.6.6" | ||
__version__ = "0.6.7" |
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
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
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