name: EpicMorg EcoSystem Gitlab Runner Images

on:
  workflow_dispatch:
  schedule:
    - cron:  '4 5 * * 2,4,6'

jobs:

  build-glr-main-images:
    name: Build EpicMorg Gitlab Runner Main Images
    runs-on: ubuntu-24.04

    steps:
    - uses: actions/checkout@v4
    - name: Log into registry
      run:  echo "${{ secrets.DOCKER_SERVER_KEY }}" | docker login -u "${{ secrets.DOCKER_SERVER_LOGIN }}" --password-stdin

    - name: Test Make
      run:  make

    - name: Install requirements.txt
      run:  make pip

    - name: "Build and Deploy Gitlab Runner Main Image:"
      run:  cd linux/ecosystem/gitlab/runner/latest    && pwd && make build && make deploy

##################################################################################

  build-glr-other-images:
    name: Build EpicMorg Gitlab Runner Oter Images
    runs-on: ubuntu-24.04
    needs: build-glr-main-images

    steps:
    - uses: actions/checkout@v4
    - name: Log into registry
      run:  echo "${{ secrets.DOCKER_SERVER_KEY }}" | docker login -u "${{ secrets.DOCKER_SERVER_LOGIN }}" --password-stdin

    - name: Test Make
      run:  make

    - name: Install requirements.txt
      run:  make pip

    - name: "Build and Deploy Gitlab Runner amxX 1.9 SDK Image:"
      run:  cd linux/ecosystem/gitlab/runner/amxx-sdk/1.9    && pwd && make build && make deploy

    - name: "Build and Deploy Gitlab Runner amxX 1.10 SDK Image:"
      run:  cd linux/ecosystem/gitlab/runner/amxx-sdk/1.10    && pwd && make build && make deploy

##################################################################################

    - name: Cleanup
      run: make docker-clean

##################################################################################

    - name: "Build and Deploy Gitlab Runner Android SDK Image (jdk8):"
      run:  cd linux/ecosystem/gitlab/runner/android-sdk/jdk8    && pwd && make build && make deploy

##################################################################################

    - name: Cleanup
      run: make docker-clean

##################################################################################

    - name: "Build and Deploy Gitlab Runner Android SDK Image (jdk11):"
      run:  cd linux/ecosystem/gitlab/runner/android-sdk/jdk11   && pwd && make build && make deploy

##################################################################################

    - name: Cleanup
      run: make docker-clean

##################################################################################

    - name: "Build and Deploy Gitlab Runner Android SDK Image (jdk17):"
      run:  cd linux/ecosystem/gitlab/runner/android-sdk/jdk17    && pwd && make build && make deploy

##################################################################################

    - name: Cleanup
      run: make docker-clean

##################################################################################

    - name: "Build and Deploy Gitlab Runner Atlassian SDK Image:"
      run:  cd linux/ecosystem/gitlab/runner/atlassian-sdk    && pwd && make build && make deploy

##################################################################################

    - name: Cleanup
      run: make docker-clean

##################################################################################

    - name: "Build and Deploy Gitlab Runner dotNet SDK Image:"
      run:  cd linux/ecosystem/gitlab/runner/dotnet-sdk    && pwd && make build && make deploy

    - name: "Build and Deploy Gitlab Runner node0.12 Image:"
      run:  cd linux/ecosystem/gitlab/runner/node0.12    && pwd && make build && make deploy

    - name: "Build and Deploy Gitlab Runner node4 Image:"
      run:  cd linux/ecosystem/gitlab/runner/node4    && pwd && make build && make deploy

##################################################################################

    - name: Cleanup
      run: make docker-clean

##################################################################################
# 
#     - name: "Build and Deploy Gitlab Runner node5 Image:"
#       run:  cd linux/ecosystem/gitlab/runner/node5    && pwd && make build && make deploy
# 
#     - name: "Build and Deploy Gitlab Runner node6 Image:"
#       run:  cd linux/ecosystem/gitlab/runner/node6    && pwd && make build && make deploy
# 
#     - name: "Build and Deploy Gitlab Runner node7 Image:"
#       run:  cd linux/ecosystem/gitlab/runner/node7    && pwd && make build && make deploy
# 
# ##################################################################################
# 
#     - name: Cleanup
#       run: make docker-clean
# 
# ##################################################################################
# 
#     - name: "Build and Deploy Gitlab Runner node8 Image:"
#       run:  cd linux/ecosystem/gitlab/runner/node8    && pwd && make build && make deploy
# 
#     - name: "Build and Deploy Gitlab Runner node9 Image:"
#       run:  cd linux/ecosystem/gitlab/runner/node9    && pwd && make build && make deploy
# 
#     - name: "Build and Deploy Gitlab Runner node10 Image:"
#       run:  cd linux/ecosystem/gitlab/runner/node10    && pwd && make build && make deploy
# 
# ##################################################################################
# 
#     - name: Cleanup
#       run: make docker-clean
# 
# ##################################################################################
# 
#     - name: "Build and Deploy Gitlab Runner node11 Image:"
#       run:  cd linux/ecosystem/gitlab/runner/node11    && pwd && make build && make deploy
# 
#     - name: "Build and Deploy Gitlab Runner node12 Image:"
#       run:  cd linux/ecosystem/gitlab/runner/node12    && pwd && make build && make deploy
# 
#     - name: "Build and Deploy Gitlab Runner node13 Image:"
#       run:  cd linux/ecosystem/gitlab/runner/node13    && pwd && make build && make deploy
# 
# ##################################################################################
# 
#     - name: Cleanup
#       run: make docker-clean
# 
# ##################################################################################
# 
#     - name: "Build and Deploy Gitlab Runner node14 Image:"
#       run:  cd linux/ecosystem/gitlab/runner/node14    && pwd && make build && make deploy
# 
#     - name: "Build and Deploy Gitlab Runner node15 Image:"
#       run:  cd linux/ecosystem/gitlab/runner/node15    && pwd && make build && make deploy
#     
# 
# ##################################################################################
# 
#     - name: Cleanup
#       run: make docker-clean
# 
# ##################################################################################
# 
#     - name: "Build and Deploy Gitlab Runner node16 Image:"
#       run:  cd linux/ecosystem/gitlab/runner/node16    && pwd && make build && make deploy
# 
#     - name: "Build and Deploy Gitlab Runner node17 Image:"
#       run:  cd linux/ecosystem/gitlab/runner/node17    && pwd && make build && make deploy
# 
#     - name: "Build and Deploy Gitlab Runner node18 Image:"
#       run:  cd linux/ecosystem/gitlab/runner/node18    && pwd && make build && make deploy
# 
# ##################################################################################
# 
#     - name: Cleanup
#       run: make docker-clean
# 
# ##################################################################################
# 
#     - name: "Build and Deploy Gitlab Runner node19 Image:"
#       run:  cd linux/ecosystem/gitlab/runner/node19    && pwd && make build && make deploy
# 
#     - name: "Build and Deploy Gitlab Runner node20 Image:"
#       run:  cd linux/ecosystem/gitlab/runner/node20    && pwd && make build && make deploy
#     
#     - name: "Build and Deploy Gitlab Runner node21 Image:"
#       run:  cd linux/ecosystem/gitlab/runner/node21    && pwd && make build && make deploy
#     
#     - name: "Build and Deploy Gitlab Runner node22 Image:"
#       run:  cd linux/ecosystem/gitlab/runner/node22    && pwd && make build && make deploy
# 
# ##################################################################################
# 
#     - name: Cleanup
#       run: make docker-clean
# 
# ##################################################################################
# 
#     - name: "Build and Deploy Gitlab Runner php7.2 Image:"
#       run:  cd linux/ecosystem/gitlab/runner/php7.2    && pwd && make build && make deploy
# 
#     - name: "Build and Deploy Gitlab Runner php7.3 Image:"
#       run:  cd linux/ecosystem/gitlab/runner/php7.3    && pwd && make build && make deploy
# 
#     - name: "Build and Deploy Gitlab Runner php7.4 Image:"
#       run:  cd linux/ecosystem/gitlab/runner/php7.4    && pwd && make build && make deploy
#     
# 
# ##################################################################################
# 
#     - name: Cleanup
#       run: make docker-clean
# 
# ##################################################################################
# 
#     - name: "Build and Deploy Gitlab Runner php8.0 Image:"
#       run:  cd linux/ecosystem/gitlab/runner/php8.0    && pwd && make build && make deploy
# 
#     - name: "Build and Deploy Gitlab Runner php8.1 Image:"
#       run:  cd linux/ecosystem/gitlab/runner/php8.1    && pwd && make build && make deploy
# 
#     - name: "Build and Deploy Gitlab Runner php8.2 Image:"
#       run:  cd linux/ecosystem/gitlab/runner/php8.2    && pwd && make build && make deploy
# 
#     - name: "Build and Deploy Gitlab Runner php8.3 Image:"
#       run:  cd linux/ecosystem/gitlab/runner/php8.3    && pwd && make build && make deploy
# 
#     - name: "Build and Deploy Gitlab Runner Steam SDK Image:"
#       run:  cd linux/ecosystem/gitlab/runner/steam-sdk    && pwd && make build && make deploy
# 
# ##################################################################################