docker-scripts/.github/workflows/epicmorg.base.images.web.yml
2022-09-13 15:34:13 +03:00

124 lines
4.1 KiB
YAML

name: EpicMorg EcoSystem Web Images
on:
# push:
# branches:
# - 'master'
schedule:
- cron: '2 2 * * 1,3,5'
jobs:
build-php-images:
name: Build EpicMorg PHP Images
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- 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: "Build and Deploy PHP Latest Image:"
run: cd linux/ecosystem/php/latest && pwd && make build && make deploy
- name: "Build and Deploy PHP 7.2 Image:"
run: cd linux/ecosystem/php/7.2 && pwd && make build && make deploy
- name: "Build and Deploy PHP 7.3 Image:"
run: cd linux/ecosystem/php/7.3 && pwd && make build && make deploy
- name: "Build and Deploy PHP 7.4 Image:"
run: cd linux/ecosystem/php/7.4 && pwd && make build && make deploy
- name: "Build and Deploy PHP 8.0 Image:"
run: cd linux/ecosystem/php/8.0 && pwd && make build && make deploy
##################################################################################
build-apache2-images:
name: Build EpicMorg Apache 2 Images
runs-on: ubuntu-22.04
needs: build-php-images
steps:
- uses: actions/checkout@v2
- 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: "Build and Deploy Apache 2 Latest Image:"
run: cd linux/ecosystem/apache2/latest && pwd && make build && make deploy
- name: "Build and Deploy Apache 2 + PHP 7.2 Image:"
run: cd linux/ecosystem/apache2/7.2 && pwd && make build && make deploy
- name: "Build and Deploy Apache 2 + PHP 7.3 Image:"
run: cd linux/ecosystem/apache2/7.3 && pwd && make build && make deploy
- name: "Build and Deploy Apache 2 + PHP 7.4 Image:"
run: cd linux/ecosystem/apache2/7.4 && pwd && make build && make deploy
- name: "Build and Deploy Apache 2 + PHP 8.0 Image:"
run: cd linux/ecosystem/apache2/8.0 && pwd && make build && make deploy
##################################################################################
build-nginx-images:
name: Build EpicMorg NginX Images
runs-on: ubuntu-22.04
needs: build-php-images
steps:
- uses: actions/checkout@v2
- 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: "Build and Deploy NginX Image:"
run: cd linux/ecosystem/nginx/latest/main && pwd && make build && make deploy
- name: "Build and Deploy NginX + PHP Image:"
run: cd linux/ecosystem/nginx/latest/php && pwd && make build && make deploy
- name: "Build and Deploy NginX + RTMP-HLS Image:"
run: cd linux/ecosystem/nginx/latest/rtmp-hls && pwd && make build && make deploy
##################################################################################
build-testrail-images:
name: Build EpicMorg Testrail Images
runs-on: ubuntu-22.04
needs: build-php-images
steps:
- uses: actions/checkout@v2
- 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: "Build and Deploy Cassandra 3.11 Image:"
run: cd linux/ecosystem/cassandra/3.11 && pwd && make build && make deploy
- name: "Build and Deploy Testrail Image:"
run: cd linux/ecosystem/testrail/latest && pwd && make build && make deploy
- name: "Build and Deploy Testrail + AD Image:"
run: cd linux/ecosystem/testrail/ad && pwd && make build && make deploy
- name: "Build and Deploy Testrail + LDAP Image:"
run: cd linux/ecosystem/testrail/ldap && pwd && make build && make deploy
##################################################################################
- name: Cleanup
run: make docker-clean