Skip to content

Commit

Permalink
log in to and use ghcr.io, not localhost registry
Browse files Browse the repository at this point in the history
  • Loading branch information
daler committed Feb 27, 2024
1 parent f889d09 commit 8ff41e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ jobs:
id: create-env
run: |
source images/versions.sh
echo '${{ secrets.GITHUB_TOKEN }}' | podman login ghcr.io -u '${{ github.actor }}' --password-stdin
if [ $(tag_exists $CREATE_ENV_IMAGE_NAME $BIOCONDA_IMAGE_TAG) ]; then
echo "TAG_EXISTS_create-env=true" >> $GITHUB_OUTPUT
else
Expand Down
4 changes: 2 additions & 2 deletions images/create-env/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ BUILD_ARGS=()
if [ $(tag_exists $BUILD_ENV_IMAGE_NAME $BIOCONDA_IMAGE_TAG) ]; then
REGISTRY=quay.io/bioconda
else
REGISTRY=localhost
REGISTRY=ghcr.io/bioconda
fi

CONDA_VERSION=$(
Expand All @@ -35,7 +35,7 @@ BUILD_ARGS+=("--build-arg=MAMBA_VERSION=$MAMBA_VERSION")
if [ $(tag_exists $BASE_BUSYBOX_IMAGE_NAME $TAG) ]; then
REGISTRY=quay.io/bioconda
else
REGISTRY=localhost
REGISTRY=ghcr.io/bioconda
fi

BUILD_ARGS+=("--build-arg=BUSYBOX_IMAGE=${REGISTRY}/${BASE_BUSYBOX_IMAGE_NAME}:${TAG}")
Expand Down

0 comments on commit 8ff41e1

Please sign in to comment.