forked from conda-forge/docker-images
-
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.
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
- Loading branch information
Showing
3 changed files
with
77 additions
and
48 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 |
---|---|---|
|
@@ -9,6 +9,12 @@ on: | |
- cron: "0 6 * * SUN" # Once weekly on Sunday @ 0600 UTC | ||
workflow_dispatch: null | ||
|
||
env: | ||
# REGISTRY_DH: docker.io/condaforge | ||
# REGISTRY_QUAY: quay.io/condaforge | ||
REGISTRY_DH: docker.io/mtgrigorov | ||
REGISTRY_QUAY: quay.io/mgrigorov | ||
|
||
jobs: | ||
build: | ||
name: ${{ matrix.cfg.DOCKERIMAGE }}:${{ matrix.cfg.DOCKERTAG }} (${{ matrix.cfg.DISTRO_ARCH }}) | ||
|
@@ -252,7 +258,8 @@ jobs: | |
--build-arg DISTRO_ARCH \ | ||
--build-arg DISTRO_NAME \ | ||
--build-arg DISTRO_VER \ | ||
-t condaforge/$DOCKERIMAGE:$DOCKERTAG \ | ||
-t ${{ env.REGISTRY_DH }}/$DOCKERIMAGE:$DOCKERTAG \ | ||
-t ${{ env.REGISTRY_QUAY }}/$DOCKERIMAGE:$DOCKERTAG \ | ||
-f ${DOCKERFILE:-${DOCKERIMAGE}}/Dockerfile \ | ||
--no-cache --squash . | ||
|
@@ -269,43 +276,83 @@ jobs: | |
DH_USER: ${{ secrets.DOCKER_HUB_USER }} | ||
DH_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWD }} | ||
run: | | ||
./scripts/deploy-mgrigorov | ||
./scripts/deploy | ||
build-manifest: | ||
needs: [build] | ||
name: ${{ matrix.cfg.DOCKER_MANIFEST }}:${{ matrix.cfg.DOCKER_TAG }} | ||
# if: github.ref == 'refs/heads/main' && github.repository == 'conda-forge/docker-images' | ||
name: ${{ matrix.docker-registry }}/${{ matrix.cfg.DOCKER_MANIFEST }}:${{ matrix.cfg.DOCKER_TAG }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
docker-registry: [docker.io/mtgrigorov, quay.io/mgrigorov] | ||
cfg: | ||
- DOCKER_MANIFEST: condaforge/linux-anvil-cos7 | ||
- DOCKER_MANIFEST: linux-anvil-cos7 | ||
DOCKER_TAG: "latest" | ||
DOCKER_IMAGES: condaforge/linux-anvil-cos7-x86_64:latest,condaforge/linux-anvil-ppc64le:latest,condaforge/linux-anvil-aarch64:latest | ||
|
||
- DOCKER_MANIFEST: condaforge/linux-anvil-alma | ||
DOCKER_IMAGES: "<<ORG>>/linux-anvil-cos7-x86_64:<<TAG>>,<<ORG>>/linux-anvil-ppc64le:<<TAG>>,<<ORG>>/linux-anvil-aarch64:<<TAG>>" | ||
- DOCKER_MANIFEST: linux-anvil-alma | ||
DOCKER_TAG: "8" | ||
DOCKER_IMAGES: condaforge/linux-anvil-alma-x86_64:8,condaforge/linux-anvil-alma-ppc64le:8,condaforge/linux-anvil-alma-aarch64:8 | ||
|
||
DOCKER_IMAGES: "<<ORG>>/linux-anvil-alma-x86_64:<<TAG>>,<<ORG>>/linux-anvil-alma-ppc64le:<<TAG>>,<<ORG>>/linux-anvil-alma-aarch64:<<TAG>>" | ||
- DOCKER_MANIFEST: linux-anvil-ubi-cuda | ||
DOCKER_TAG: "11.0" | ||
DOCKER_IMAGES: "<<ORG>>/linux-anvil-cuda:<<TAG>>,<<ORG>>/linux-anvil-ppc64le-cuda:<<TAG>>,<<ORG>>/linux-anvil-aarch64-cuda:<<TAG>>" | ||
- DOCKER_MANIFEST: linux-anvil-cos7-cuda | ||
DOCKER_IMAGES: "<<ORG>>/linux-anvil-cuda:<<TAG>>,<<ORG>>/linux-anvil-ppc64le-cuda:<<TAG>>,<<ORG>>/linux-anvil-aarch64-cuda:<<TAG>>" | ||
DOCKER_TAG: "11.1" | ||
- DOCKER_MANIFEST: linux-anvil-cos7-cuda | ||
DOCKER_IMAGES: "<<ORG>>/linux-anvil-cuda:<<TAG>>,<<ORG>>/linux-anvil-ppc64le-cuda:<<TAG>>,<<ORG>>/linux-anvil-aarch64-cuda:<<TAG>>" | ||
DOCKER_TAG: "11.2" | ||
- DOCKER_MANIFEST: linux-anvil-cos7-cuda | ||
DOCKER_IMAGES: "<<ORG>>/linux-anvil-cuda:<<TAG>>,<<ORG>>/linux-anvil-ppc64le-cuda:<<TAG>>,<<ORG>>/linux-anvil-aarch64-cuda:<<TAG>>" | ||
DOCKER_TAG: "11.3" | ||
- DOCKER_MANIFEST: linux-anvil-cos7-cuda | ||
DOCKER_IMAGES: "<<ORG>>/linux-anvil-cuda:<<TAG>>,<<ORG>>/linux-anvil-ppc64le-cuda:<<TAG>>,<<ORG>>/linux-anvil-aarch64-cuda:<<TAG>>" | ||
DOCKER_TAG: "11.4" | ||
- DOCKER_MANIFEST: linux-anvil-cos7-cuda | ||
DOCKER_IMAGES: "<<ORG>>/linux-anvil-cuda:<<TAG>>,<<ORG>>/linux-anvil-ppc64le-cuda:<<TAG>>,<<ORG>>/linux-anvil-aarch64-cuda:<<TAG>>" | ||
DOCKER_TAG: "11.5" | ||
- DOCKER_MANIFEST: linux-anvil-cos7-cuda | ||
DOCKER_IMAGES: "<<ORG>>/linux-anvil-cuda:<<TAG>>,<<ORG>>/linux-anvil-ppc64le-cuda:<<TAG>>,<<ORG>>/linux-anvil-aarch64-cuda:<<TAG>>" | ||
DOCKER_TAG: "11.6" | ||
- DOCKER_MANIFEST: linux-anvil-cos7-cuda | ||
DOCKER_IMAGES: "<<ORG>>/linux-anvil-cuda:<<TAG>>,<<ORG>>/linux-anvil-ppc64le-cuda:<<TAG>>,<<ORG>>/linux-anvil-aarch64-cuda:<<TAG>>" | ||
DOCKER_TAG: "11.7" | ||
- DOCKER_MANIFEST: linux-anvil-cos7-cuda | ||
DOCKER_IMAGES: "<<ORG>>/linux-anvil-cuda:<<TAG>>,<<ORG>>/linux-anvil-ppc64le-cuda:<<TAG>>,<<ORG>>/linux-anvil-aarch64-cuda:<<TAG>>" | ||
DOCKER_TAG: "11.8" | ||
|
||
steps: | ||
|
||
- name: Create Docker manifests | ||
uses: Noelware/[email protected] | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Interpolate placeholders | ||
id: interpolate | ||
run: | | ||
set -x | ||
INTERPOLATED=`echo "${{ matrix.cfg.DOCKER_IMAGES }}" | sed "s#<<ORG>>#${{ matrix.docker-registry }}#g" | sed "s#<<TAG>>#${{ matrix.cfg.DOCKER_TAG }}#g"` | ||
echo "DOCKER_IMAGES=${INTERPOLATED}" >> "$GITHUB_OUTPUT" | ||
- name: Login to DockerHub registry | ||
uses: docker/login-action@v2 | ||
with: | ||
inputs: ${{ matrix.cfg.DOCKER_MANIFEST }}:${{ matrix.cfg.DOCKER_TAG }} | ||
images: ${{ matrix.cfg.DOCKER_IMAGES }} | ||
push: false | ||
|
||
- name: Deploy manifests | ||
# if: github.ref == 'refs/heads/main' && github.repository == 'conda-forge/docker-images' | ||
username: ${{ secrets.DOCKER_HUB_USER }} | ||
password: ${{ secrets.DOCKER_HUB_PASSWD }} | ||
# username: ${{ secrets.DH_USER }} | ||
# password: ${{ secrets.DH_PASSWORD }} | ||
|
||
- name: Login to Quay.io registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: quay.io | ||
username: ${{ secrets.CFD_QUAY_USER }} | ||
password: ${{ secrets.CFD_QUAY_PASSWORD }} | ||
|
||
- name: Push Docker manifest list for ${{ matrix.docker-registry }} | ||
uses: Noelware/[email protected] | ||
env: | ||
CFD_QUAY_USER: ${{ secrets.CFD_QUAY_USER }} | ||
CFD_QUAY_PASSWORD: ${{ secrets.CFD_QUAY_PASSWORD }} | ||
# DH_PASSWORD: ${{ secrets.DH_PASSWORD }} | ||
DH_USER: ${{ secrets.DOCKER_HUB_USER }} | ||
DH_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWD }} | ||
DOCKERIMAGE: ${{ matrix.cfg.DOCKER_MANIFEST }} | ||
DOCKERTAG: ${{ matrix.cfg.DOCKER_TAG }} | ||
run: | | ||
./scripts/deploy-mgrigorov | ||
ORG: mtgrigorov | ||
with: | ||
inputs: ${{ matrix.docker-registry }}/${{ matrix.cfg.DOCKER_MANIFEST }}:${{ matrix.cfg.DOCKER_TAG }} | ||
images: ${{ steps.interpolate.outputs.DOCKER_IMAGES }} | ||
push: true | ||
|
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 was deleted.
Oops, something went wrong.