Skip to content

Commit

Permalink
Restore to the official Docker registry (Quay.io)
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
  • Loading branch information
martin-g committed Oct 4, 2023
1 parent 504fff2 commit 0c88484
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 20 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/create-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
bioconda_utils_version: 'latest'
uname_m: 'x86_64'
- arch: arm64
base_image: 'ghcr.io/bioconda/bioconda-utils-build-env-cos7-aarch64'
base_image: 'quay.io/bioconda/bioconda-utils-build-env-cos7-aarch64'
bioconda_utils_version: 'latest'
uname_m: 'aarch64'
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -66,8 +66,8 @@ jobs:
containerfiles: |
./images/${{ env.IMAGE_NAME }}/Dockerfile
build-args: |
bioconda_utils_version=${{ steps.prepare.outputs.bioconda_utils_version }}
base_image=${{ matrix.base_image }}
bioconda_utils_version=${{ matrix.bioconda_utils_version }}
conda_arch=${{ matrix.uname_m }}
- name: Test
Expand Down Expand Up @@ -124,25 +124,15 @@ jobs:
done
done
- if: always()
name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}

- if: always()
# if: ${{ github.ref == 'refs/heads/main' }}
- if: ${{ github.ref == 'refs/heads/main' }}
name: Push
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.buildah-build.outputs.image }}
tags: ${{ steps.buildah-build.outputs.tags }}
# registry: ${{ secrets.QUAY_BIOCONDA_REPO }}
registry: ghcr.io/martin-g
# username: ${{ secrets.QUAY_BIOCONDA_USERNAME }}
# password: ${{ secrets.QUAY_BIOCONDA_TOKEN }}
registry: ${{ secrets.QUAY_BIOCONDA_REPO }}
username: ${{ secrets.QUAY_BIOCONDA_USERNAME }}
password: ${{ secrets.QUAY_BIOCONDA_TOKEN }}

- if: ${{ github.ref == 'refs/heads/main' }}
name: Test Pushed
Expand Down
6 changes: 2 additions & 4 deletions images/create-env/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ RUN /opt/conda/bin/conda list \


# Use Debian instead of BusyBox base since Miniconda currently needs external zlib.
#FROM quay.io/bioconda/base-glibc-debian-bash as build
FROM ghcr.io/martin-g/base-glibc-debian-bash as build
FROM quay.io/bioconda/base-glibc-debian-bash as build

WORKDIR /tmp/work
COPY --from=bioconda-build-env /tmp/requirements.txt ./
Expand All @@ -22,8 +21,7 @@ ADD https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-${conda_arch}.sh
RUN ./install-conda ./requirements.txt /opt/create-env


#FROM quay.io/bioconda/base-glibc-busybox-bash
FROM ghcr.io/martin-g/base-glibc-busybox-bash
FROM quay.io/bioconda/base-glibc-busybox-bash

COPY --from=build /opt/create-env /opt/create-env
# Copy (Bioconda-specific) Conda configuration created by the install-conda script.
Expand Down

0 comments on commit 0c88484

Please sign in to comment.