From e5648aa2d132e295014679f6d0239ac066feb55e Mon Sep 17 00:00:00 2001 From: Wouter Deconinck Date: Fri, 7 Jun 2024 16:07:04 -0500 Subject: [PATCH] fix: dev -> xl --- .github/workflows/build-push.yml | 80 ++------------------------------ 1 file changed, 5 insertions(+), 75 deletions(-) diff --git a/.github/workflows/build-push.yml b/.github/workflows/build-push.yml index 8bdc400c..0bbae55f 100644 --- a/.github/workflows/build-push.yml +++ b/.github/workflows/build-push.yml @@ -108,7 +108,7 @@ jobs: cache-from: type=gha,scope=${{ github.workflow }} cache-to: type=gha,mode=max,scope=${{ github.workflow }} - dev: + eic: runs-on: ubuntu-latest needs: base strategy: @@ -116,9 +116,9 @@ jobs: include: - BUILDER_IMAGE: debian_stable_base RUNTIME_IMAGE: debian_stable_base - BUILD_IMAGE: dev + BUILD_IMAGE: eic_ PLATFORM: linux/amd64 - ENV: dev + ENV: xl steps: - name: Free Disk Space (Ubuntu) uses: jlumbroso/free-disk-space@v1.3.1 @@ -173,8 +173,8 @@ jobs: uses: docker/metadata-action@v5 with: images: | - name=${{ env.DH_REGISTRY }}/${{ env.DH_REGISTRY_USER }}/eic_${{ matrix.BUILD_IMAGE }},enable=${{ env.DH_PUSH != 0 }} - name=${{ env.GH_REGISTRY }}/${{ env.GH_REGISTRY_USER }}/eic_${{ matrix.BUILD_IMAGE }},enable=${{ env.GH_PUSH != 0 }} + name=${{ env.DH_REGISTRY }}/${{ env.DH_REGISTRY_USER }}/${{ matrix.BUILD_IMAGE }}${{ matrix.ENV }},enable=${{ env.DH_PUSH != 0 }} + name=${{ env.GH_REGISTRY }}/${{ env.GH_REGISTRY_USER }}/${{ matrix.BUILD_IMAGE }}${{ matrix.ENV }},enable=${{ env.GH_PUSH != 0 }} tags: | ${{ env.INTERNAL_TAG }} type=schedule,pattern={{date 'YYYY-MM-DD'}} @@ -211,7 +211,6 @@ jobs: DOCKER_REGISTRY=${{ env.GH_REGISTRY }}/${{ env.GH_REGISTRY_USER }}/ BUILDER_IMAGE=${{ matrix.BUILDER_IMAGE }} RUNTIME_IMAGE=${{ matrix.RUNTIME_IMAGE }} - BUILD_IMAGE=eic_${{ matrix.BUILD_IMAGE }} INTERNAL_TAG=${{ env.INTERNAL_TAG }} SPACK_ORGREPO=${{ steps.spack.outputs.orgrepo }} SPACK_VERSION=${{ steps.spack.outputs.version }} @@ -228,72 +227,3 @@ jobs: jobs=${{ env.JOBS }} cache-from: type=gha,scope=${{ github.workflow }} cache-to: type=gha,mode=max,scope=${{ github.workflow }} - - xl: - runs-on: ubuntu-latest - needs: dev - strategy: - matrix: - include: - - BASE_IMAGE: dev - BUILD_IMAGE: xl - PLATFORM: linux/amd64 - steps: - - name: Free Disk Space (Ubuntu) - uses: jlumbroso/free-disk-space@v1.3.1 - with: - android: true - dotnet: true - - name: Checkout - uses: actions/checkout@v4 - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - with: - platforms: linux/amd64 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - name: Docker meta - id: meta - uses: docker/metadata-action@v5 - with: - images: | - name=${{ env.DH_REGISTRY }}/${{ env.DH_REGISTRY_USER }}/eic_${{ matrix.BUILD_IMAGE }},enable=${{ env.DH_PUSH != 0 }} - name=${{ env.GH_REGISTRY }}/${{ env.GH_REGISTRY_USER }}/eic_${{ matrix.BUILD_IMAGE }},enable=${{ env.GH_PUSH != 0 }} - tags: | - ${{ env.INTERNAL_TAG }} - type=schedule,pattern={{date 'YYYY-MM-DD'}} - type=ref,prefix=unstable-pr-,event=pr - type=match,pattern=^v(\d+\.\d+\.\d+-.*)$,group=1 - - name: Login to Docker Hub - uses: docker/login-action@v3 - if: ${{ env.DH_PUSH == '1' }} - with: - registry: ${{ env.DH_REGISTRY }} - username: ${{ env.DH_REGISTRY_USER }} - password: ${{ secrets.DH_EICWEB_TOKEN }} - - name: Login to GitHub Container Registry - uses: docker/login-action@v3 - if: ${{ env.GH_PUSH == '1' }} - with: - registry: ${{ env.GH_REGISTRY }} - username: ${{ secrets.GHCR_REGISTRY_USER }} - password: ${{ secrets.GHCR_REGISTRY_TOKEN }} - - name: Build and push - uses: docker/build-push-action@v5 - with: - file: containers/jug/xl.Dockerfile - context: containers/jug - build-contexts: | - detectors=. - platforms: ${{ matrix.PLATFORM }} - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - build-args: | - DOCKER_REGISTRY=${{ env.GH_REGISTRY }}/${{ env.GH_REGISTRY_USER }}/ - BASE_IMAGE=eic_${{ matrix.BASE_IMAGE }} - BUILD_IMAGE=eic_${{ matrix.BUILD_IMAGE }} - INTERNAL_TAG=${{ env.INTERNAL_TAG }} - jobs=${{ env.JOBS }} - cache-from: type=gha,scope=${{ github.workflow }} - cache-to: type=gha,mode=max,scope=${{ github.workflow }}