Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ghcr #845

Merged
merged 2 commits into from
Oct 10, 2023
Merged

Ghcr #845

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ jobs:
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Login to DockerHub
- name: Login to GHCR
uses: docker/login-action@v3
with:
username: wjhjgi
password: ${{ secrets.DOCKERHUB_TOKEN }}
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: generate version_info file
run: python ./docker/most_recent_commits.py > docker/.version_info
- name: generate time based tag
Expand All @@ -32,13 +33,11 @@ jobs:
context: ./docker
file: ./docker/Dockerfile.shifter
platforms: linux/amd64
cache-from: type=registry,ref=wjhjgi/metatlas_shifter:latest
cache-from: type=registry,ref=ghcr.io/biorack/metatlas/metatlas_shifter:latest
cache-to: type=inline
tags: |
wjhjgi/metatlas_shifter:${{ steps.timestamp.outputs.date_time }}
wjhjgi/metatlas_shifter:latest
doejgi/metatlas_shifter:${{ steps.timestamp.outputs.date_time }}
doejgi/metatlas_shifter:latest
ghcr.io/biorack/metatlas/metatlas_shifter:${{ steps.timestamp.outputs.date_time }}
ghcr.io/biorack/metatlas/metatlas_shifter:latest
push: true
build_push_metatlas_analysis_image:
name: Build/push analysis docker image
Expand Down
2 changes: 1 addition & 1 deletion docker/local_jupyter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -euf -o pipefail
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
REPO_DIR=$(dirname "$SCRIPT_DIR")
OUT_DIR="${SCRIPT_DIR}/out"
IMAGE='registry.spin.nersc.gov/metatlas_test/metatlas_ci:1.1.0'
IMAGE='ghcr.io/biorack/metatlas/metatlas_ci:1.2.0'
PORT=8888

while [[ "$#" -gt 0 ]]; do
Expand Down
2 changes: 1 addition & 1 deletion docker/rollback_shifter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
set -euf -o pipefail

SHORT="metatlas_shifter"
LONG="doejgi/$SHORT"
LONG="ghcr.io/biorack/metatlas/$SHORT"
TAG=""

while [[ "$#" -gt 0 ]]; do
Expand Down
2 changes: 1 addition & 1 deletion docker/shifter.kernel.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{"argv": ["shifter", "--module=none", "--clearenv", "--entrypoint",
"--image=doejgi/metatlas_shifter:latest",
"--image=ghcr.io/biorack/metatlas/metatlas_shifter:latest",
"/usr/local/bin/python", "-m", "ipykernel_launcher", "-f", "{connection_file}"],
"display_name": "Metatlas Targeted", "language": "python", "metadata": {"debugger": true}}
2 changes: 1 addition & 1 deletion papermill/submit_slurm_job.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ validate_extra_parameters() {
}

is_valid_yaml() {
echo "$1" | shifter --module=none --clearenv --image=doejgi/metatlas_shifter:latest \
echo "$1" | shifter --module=none --clearenv --image=ghcr.io/biorack/metatlas/metatlas_shifter:latest \
/src/metatlas/scripts/yaml_validation.py
}

Expand Down
2 changes: 1 addition & 1 deletion tests/system/test_add_msms_ref.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


def test_add_msms_ref_by_line01(tmp_path):
image = "docker.io/doejgi/metatlas_ci:1.2.0"
image = "ghcr.io/biorack/metatlas/metatlas_ci:1.2.0"
expected = {}
expected[
str(tmp_path / "updated_refs.tab")
Expand Down
2 changes: 1 addition & 1 deletion tests/system/test_c18.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


def test_c18_by_line01_with_remove(tmp_path):
image = "docker.io/doejgi/metatlas_ci:1.2.0"
image = "ghcr.io/biorack/metatlas/metatlas_ci:1.2.0"
experiment = "20210915_JGI-AK_MK_506588_SoilWaterRep_final_QE-HF_C18_USDAY63680"
expected = {}
expected[
Expand Down
2 changes: 1 addition & 1 deletion tests/system/test_hybrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


def test_hybrid_by_line01_with_remove(tmp_path):
image = "docker.io/doejgi/metatlas_ci:1.2.0"
image = "ghcr.io/biorack/metatlas/metatlas_ci:1.2.0"
experiment = "20201106_JGI-AK_PS-KM_505892_OakGall_final_QE-HF_HILICZ_USHXG01583"
expected = {}
expected[
Expand Down
2 changes: 1 addition & 1 deletion tests/system/test_rt_alignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


def test_rt_alignment_by_line01(tmp_path):
image = "docker.io/doejgi/metatlas_ci:1.2.0"
image = "ghcr.io/biorack/metatlas/metatlas_ci:1.2.0"
experiment = "20201106_JGI-AK_PS-KM_505892_OakGall_final_QE-HF_HILICZ_USHXG01583"
expected = {}
expected[
Expand Down
2 changes: 1 addition & 1 deletion tests/system/test_targeted.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


def test_targeted_by_line01_with_remove(tmp_path):
image = "docker.io/doejgi/metatlas_ci:1.2.0"
image = "ghcr.io/biorack/metatlas/metatlas_ci:1.2.0"
experiment = "20201106_JGI-AK_PS-KM_505892_OakGall_final_QE-HF_HILICZ_USHXG01583"
expected = {}
expected[
Expand Down
Loading