Skip to content

Commit

Permalink
Use GHA secrets instead of hardcoding the username
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 Dec 5, 2023
1 parent d6472e0 commit 63b9143
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions .github/workflows/build-env-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
matrix:
include:
- arch: arm64
image: mgrigorov/bioconda-utils-build-env-cos7-aarch64
image: ${{ secrets.QUAY_BIOCONDA_USERNAME }}/bioconda-utils-build-env-cos7-aarch64
base_image: quay.io/condaforge/linux-anvil-aarch64
- arch: amd64
image: mgrigorov/bioconda-utils-build-env-cos7
image: ${{ secrets.QUAY_BIOCONDA_USERNAME }}/bioconda-utils-build-env-cos7-x86_64
base_image: quay.io/condaforge/linux-anvil-cos7-x86_64
steps:
- name: Checkout bioconda-containers
Expand Down Expand Up @@ -72,12 +72,9 @@ jobs:
with:
image: ${{ steps.buildah-build.outputs.image }}
tags: ${{ steps.buildah-build.outputs.tags }}
# registry: ${{ secrets.QUAY_BIOCONDA_REPO }}
# username: ${{ secrets.QUAY_BIOCONDA_USERNAME }}
# password: ${{ secrets.QUAY_BIOCONDA_TOKEN }}
registry: quay.io
username: mgrigorov
password: ${{ secrets.QUAY_PASSWORD }}
registry: ${{ secrets.QUAY_BIOCONDA_REPO }}
username: ${{ secrets.QUAY_BIOCONDA_USERNAME }}
password: ${{ secrets.QUAY_BIOCONDA_TOKEN }}

build-manifest:
needs: [build]
Expand All @@ -88,9 +85,8 @@ jobs:
fail-fast: false
matrix:
# docker-registry: [quay.io/bioconda]
docker-registry: [quay.io/mgrigorov]
docker-registry: [quay.io/${{ secrets.QUAY_BIOCONDA_USERNAME }}]
cfg:
# TODO: What name to use for the manifest list ?
- DOCKER_MANIFEST: bioconda-utils-build-env-cos7
DOCKER_TAG: "latest"
DOCKER_IMAGES: "<<ORG>>/bioconda-utils-build-env-cos7:<<TAG>>,<<ORG>>/bioconda-utils-build-env-cos7-aarch64:<<TAG>>"
Expand All @@ -110,12 +106,9 @@ jobs:
- name: Login to Quay.io registry
uses: docker/login-action@v2
with:
# registry: ${{ secrets.QUAY_BIOCONDA_REPO }}
# username: ${{ secrets.QUAY_BIOCONDA_USERNAME }}
# password: ${{ secrets.QUAY_BIOCONDA_TOKEN }}
registry: quay.io
username: mgrigorov
password: ${{ secrets.QUAY_PASSWORD }}
registry: ${{ secrets.QUAY_BIOCONDA_REPO }}
username: ${{ secrets.QUAY_BIOCONDA_USERNAME }}
password: ${{ secrets.QUAY_BIOCONDA_TOKEN }}

- name: Push Docker manifest list for ${{ matrix.docker-registry }}
uses: Noelware/[email protected]
Expand Down

0 comments on commit 63b9143

Please sign in to comment.