github actions

This commit is contained in:
STAM 2020-11-24 02:09:47 +03:00
parent 4242c38caa
commit 83cb5d1487
2 changed files with 221 additions and 267 deletions

View File

@ -1,14 +1,11 @@
name: Build and deploy Main Images name: Build and deploy Main Images
#env:
# # TODO: Change variable to your image's name.
# IMAGE_NAME: image
on: on:
pull_request: pull_request:
branches: branches:
- '*' - '*'
tags: tags:
- v* - '*'
push: push:
branches: branches:
- 'master' - 'master'
@ -52,3 +49,223 @@ jobs:
run: docker build --compress -t epicmorg/nextcloud:latest nextcloud/latest run: docker build --compress -t epicmorg/nextcloud:latest nextcloud/latest
- name: Push NextCloud (latest) - name: Push NextCloud (latest)
run: docker push epicmorg/nextcloud:latest run: docker push epicmorg/nextcloud:latest
#########################################
#### Our High priority images
#########################################
# - name: Build Template
# run: docker build --compress -t user/repo:tag path/to/folder/contains/dockerfile
# - name: Push Template
# run: docker push user/repo:tag
build2:
name: Our High priority images
runs-on: ubuntu-20.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: Build Base Production
run: docker build --compress -t epicmorg/prod:latest epicmorg/prod/main
- name: Push Base Production
run: docker push epicmorg/prod:latest
- name: Build Base Production + JDK 6
run: docker build --compress -t epicmorg/prod:jdk6 epicmorg/prod/jdk6
- name: Push Base Production + JDK 6
run: docker push epicmorg/prod:jdk6
- name: Build Base Production + JDK 7
run: docker build --compress -t epicmorg/prod:jdk7 epicmorg/prod/jdk7
- name: Push Base Production + JDK 7
run: docker push epicmorg/prod:jdk7
- name: Build Base Production + JDK 8
run: docker build --compress -t epicmorg/prod:jdk8 epicmorg/prod/jdk8
- name: Push Base Production + JDK 8
run: docker push epicmorg/prod:jdk8
- name: Build Base Production + JDK 11
run: docker build --compress -t epicmorg/prod:jdk11 epicmorg/prod/jdk11
- name: Push Base Production + JDK 11
run: docker push epicmorg/prod:jdk11
##########
- name: Build Base Edge
run: docker build --compress -t epicmorg/edge:latest epicmorg/edge/main
- name: Push Base Edge
run: docker push epicmorg/edge:latest
- name: Build Base Edge + JDK 6
run: docker build --compress -t epicmorg/edge:jdk6 epicmorg/edge/jdk6
- name: Push Base Edge + JDK 6
run: docker push epicmorg/edge:jdk6
- name: Build Base Edge + JDK 7
run: docker build --compress -t epicmorg/edge:jdk7 epicmorg/edge/jdk7
- name: Push Base Edge + JDK 7
run: docker push epicmorg/edge:jdk7
- name: Build Base Edge + JDK 8
run: docker build --compress -t epicmorg/edge:jdk8 epicmorg/edge/jdk8
- name: Push Base Edge + JDK 8
run: docker push epicmorg/edge:jdk8
- name: Build Base Edge + JDK 11
run: docker build --compress -t epicmorg/edge:jdk11 epicmorg/edge/jdk11
- name: Push Base Edge + JDK 11
run: docker push epicmorg/edge:jdk11
##########
- name: Build Base Develop
run: docker build --compress -t epicmorg/devel:latest epicmorg/devel/main
- name: Push Base Develop
run: docker push epicmorg/devel:latest
- name: Build Base Develop + JDK 6
run: docker build --compress -t epicmorg/devel:jdk6 epicmorg/devel/jdk6
- name: Push Base Develop + JDK 6
run: docker push epicmorg/devel:jdk6
- name: Build Base Develop + JDK 7
run: docker build --compress -t epicmorg/devel:jdk7 epicmorg/devel/jdk7
- name: Push Base Develop + JDK 7
run: docker push epicmorg/devel:jdk7
- name: Build Base Develop + JDK 8
run: docker build --compress -t epicmorg/devel:jdk8 epicmorg/devel/jdk8
- name: Push Base Develop + JDK 8
run: docker push epicmorg/devel:jdk8
- name: Build Base Develop + JDK 11
run: docker build --compress -t epicmorg/devel:jdk11 epicmorg/devel/jdk11
- name: Push Base Develop + JDK 11
run: docker push epicmorg/devel:jdk11
##########
- name: Build TeamCity Agent
run: docker build --compress -t epicmorg/teamcity-agent:latest teamcity-agent
- name: Push TeamCity Agent
run: docker push epicmorg/teamcity-agent:latest
- name: Build NGinx (latest)
run: docker build --compress -t epicmorg/balancer:latest balancer/latest
- name: Push NGinx (latest)
run: docker push epicmorg/balancer:latest
- name: Build NGinx + PHP7.4
run: docker build --compress -t epicmorg/balancer:php balancer/php
- name: Push NGinx + PHP7.4
run: docker push epicmorg/balancer:php
- name: Build NGinx + RTMP-HLS
run: docker build --compress -t epicmorg/balancer:rtmp-hls balancer/rtmp-hls
- name: Push NGinx + RTMP-HLS
run: docker push epicmorg/balancer:rtmp-hls
- name: Build Apache (latest)
run: docker build --compress -t epicmorg/websites:latest websites/latest
- name: Push Apache (latest)
run: docker push epicmorg/websites:latest
- name: Build Apache + PHP7.4
run: docker build --compress -t epicmorg/websites:php7.4 websites/php7.4
- name: Push Apache + PHP7.4
run: docker push epicmorg/websites:php7.4
- name: Build Apache + PHP7.3
run: docker build --compress -t epicmorg/websites:php7.3 websites/php7.3
- name: Push Apache + PHP7.3
run: docker push epicmorg/websites:php7.3
- name: Build Apache + PHP7.2
run: docker build --compress -t epicmorg/websites:php7.2 websites/php7.2
- name: Push Apache + PHP7.2
run: docker push epicmorg/websites:php7.2
- name: Build Testrail (always latest)
run: docker build --compress -t epicmorg/testrail:latest testrail
- name: Push Testrail (always latest)
run: docker push epicmorg/testrail:latest
- name: Build PostgresSQL (latest)
run: docker build --compress -t epicmorg/postgres:latest postgres/latest
- name: Push PostgresSQL (latest)
run: docker push epicmorg/postgres:latest
##########
- name: Build Bitbucket + JDK 8 (latest)
run: docker build --compress -t epicmorg/bitbucket:latest atlassian/bitbucket/latest
- name: Push Bitbucket + JDK 8 (latest)
run: docker push epicmorg/bitbucket:latest
- name: Build Bitbucket + JDK 11 (latest-jdk11)
run: docker build --compress -t epicmorg/bitbucket:latest-jdk11 -f atlassian/bitbucket/latest/Dockerfile.jdk11 atlassian/bitbucket/latest
- name: Push Bitbucket + JDK 11 (latest-jdk11)
run: docker push epicmorg/bitbucket:latest-jdk11
- name: Build Confluence + JDK 8 (latest)
run: docker build --compress -t epicmorg/confluence:latest atlassian/confluence/latest
- name: Push Confluence + JDK 8 (latest)
run: docker push epicmorg/confluence:latest
- name: Build Confluence + JDK 11 (latest-jdk11)
run: docker build --compress -t epicmorg/confluence:latest-jdk11 -f atlassian/confluence/latest/Dockerfile.jdk11 atlassian/confluence/latest
- name: Push Confluence + JDK 11 (latest-jdk11)
run: docker push epicmorg/confluence:latest-jdk11
- name: Build Jira + JDK 8 (latest)
run: docker build --compress -t epicmorg/jira:latest atlassian/jira/latest
- name: Push Jira + JDK 8 (latest)
run: docker push epicmorg/jira:latest
- name: Build Jira + JDK 11 (latest-jdk11)
run: docker build --compress -t epicmorg/jira:latest-jdk11 -f atlassian/jira/latest/Dockerfile.jdk11 atlassian/jira/latest
- name: Push Jira + JDK 11 (latest-jdk11)
run: docker push epicmorg/jira:latest-jdk11
- name: Build Fisheye + Crucible + JDK 8 (latest)
run: docker build --compress -t epicmorg/fisheye-crucible:latest atlassian/fisheye-crucible/latest
- name: Push Build Fisheye + Crucible + JDK 8 (latest)
run: docker push epicmorg/fisheye-crucible:latest
- name: Build Postgres (latest)
run: docker build --compress -t epicmorg/postgres:latest postgres/latest
- name: Push Postgres (latest)
run: docker push epicmorg/postgres:latest
##########
- name: Build vk2discord (latest)
run: docker build --compress -t epicmorg/vk2discord:latest vk2discord/latest
- name: Push vk2discord (latest)
run: docker push epicmorg/vk2discord:latest
##########
- name: Build qBitTorrent (latest)
run: docker build --compress -t epicmorg/qbittorrent:latest qbittorrent/latest
- name: Push qBitTorrent (latest)
run: docker push epicmorg/qbittorrent:latest
- name: Build qBitTorrent (unstable)
run: docker build --compress -t epicmorg/qbittorrent:unstable qbittorrent/latest
- name: Push qBitTorrent (unstable)
run: docker push epicmorg/qbittorrent:unstable
- name: Build qBitTorrent (stable)
run: docker build --compress -t epicmorg/qbittorrent:stable qbittorrent/stable
- name: Push qBitTorrent (stable)
run: docker push epicmorg/qbittorrent:stable
#########################################
#### Our minor priority images
#########################################

View File

@ -1,263 +0,0 @@
os: linux
dist: bionic #https://docs.travis-ci.com/user/reference/overview/
language: bash
services:
- docker
addons:
apt:
packages:
- docker-ce
matrix:
include:
#########################################
#### Our High priority images
#########################################
# - name: Template
# script:
# - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
# - docker build --compress -t user/repo:tag path/to/folder/contains/dockerfile
# - docker push user/repo:tag
- name: Base Production
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/prod:latest epicmorg/prod/main
- docker push epicmorg/prod:latest
- name: Base Production + JDK 6
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/prod:jdk6 epicmorg/prod/jdk6
- docker push epicmorg/prod:jdk6
- name: Base Production + JDK 7
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/prod:jdk7 epicmorg/prod/jdk7
- docker push epicmorg/prod:jdk7
- name: Base Production + JDK 8
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/prod:jdk8 epicmorg/prod/jdk8
- docker push epicmorg/prod:jdk8
- name: Base Production + JDK 11
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/prod:jdk11 epicmorg/prod/jdk11
- docker push epicmorg/prod:jdk11
##########
- name: Base Edge
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/edge:latest epicmorg/edge/main
- docker push epicmorg/edge:latest
- name: Base Edge + JDK 6
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/edge:jdk6 epicmorg/edge/jdk6
- docker push epicmorg/edge:jdk6
- name: Base Edge + JDK 7
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/edge:jdk7 epicmorg/edge/jdk7
- docker push epicmorg/edge:jdk7
- name: Base Edge + JDK 8
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/edge:jdk8 epicmorg/edge/jdk8
- docker push epicmorg/edge:jdk8
- name: Base Edge + JDK 11
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/edge:jdk11 epicmorg/edge/jdk11
- docker push epicmorg/edge:jdk11
##########
- name: Base Develop
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/devel:latest epicmorg/devel/main
- docker push epicmorg/devel:latest
- name: Base Develop + JDK 6
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/devel:jdk6 epicmorg/devel/jdk6
- docker push epicmorg/devel:jdk6
- name: Base Develop + JDK 7
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/devel:jdk7 epicmorg/devel/jdk7
- docker push epicmorg/devel:jdk7
- name: Base Develop + JDK 8
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/devel:jdk8 epicmorg/devel/jdk8
- docker push epicmorg/devel:jdk8
- name: Base Develop + JDK 11
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/devel:jdk11 epicmorg/devel/jdk11
- docker push epicmorg/devel:jdk11
##########
- name: TeamCity Agent
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/teamcity-agent:latest teamcity-agent
- docker push epicmorg/teamcity-agent:latest
- name: NGinx (latest)
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/balancer:latest balancer/latest
- docker push epicmorg/balancer:latest
- name: NGinx + PHP7.4
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/balancer:php balancer/php
- docker push epicmorg/balancer:php
- name: NGinx + RTMP-HLS
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/balancer:rtmp-hls balancer/rtmp-hls
- docker push epicmorg/balancer:rtmp-hls
- name: Apache (latest)
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/websites:latest websites/latest
- docker push epicmorg/websites:latest
- name: Apache + PHP7.4
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/websites:php7.4 websites/php7.4
- docker push epicmorg/websites:php7.4
- name: Apache + PHP7.3
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/websites:php7.3 websites/php7.3
- docker push epicmorg/websites:php7.3
- name: Apache + PHP7.2
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/websites:php7.2 websites/php7.2
- docker push epicmorg/websites:php7.2
- name: Testrail (always latest)
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/testrail:latest testrail
- docker push epicmorg/testrail:latest
- name: PostgresSQL (latest)
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/postgres:latest postgres/latest
- docker push epicmorg/postgres:latest
##########
- name: Bitbucket + JDK 8 (latest)
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/bitbucket:latest atlassian/bitbucket/latest
- docker push epicmorg/bitbucket:latest
- name: Bitbucket + JDK 11 (latest-jdk11)
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/bitbucket:latest-jdk11 -f atlassian/bitbucket/latest/Dockerfile.jdk11 atlassian/bitbucket/latest
- docker push epicmorg/bitbucket:latest-jdk11
- name: Confluence + JDK 8 (latest)
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/confluence:latest atlassian/confluence/latest
- docker push epicmorg/confluence:latest
- name: Confluence + JDK 11 (latest-jdk11)
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/confluence:latest-jdk11 -f atlassian/confluence/latest/Dockerfile.jdk11 atlassian/confluence/latest
- docker push epicmorg/confluence:latest-jdk11
- name: Jira + JDK 8 (latest)
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/jira:latest atlassian/jira/latest
- docker push epicmorg/jira:latest
- name: Jira + JDK 11 (latest-jdk11)
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/jira:latest-jdk11 -f atlassian/jira/latest/Dockerfile.jdk11 atlassian/jira/latest
- docker push epicmorg/jira:latest-jdk11
- name: Fisheye + Crucible + JDK 8 (latest)
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/fisheye-crucible:latest atlassian/fisheye-crucible/latest
- docker push epicmorg/fisheye-crucible:latest
- name: Postgres (latest)
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/postgres:latest postgres/latest
- docker push epicmorg/postgres:latest
##########
- name: vk2discord (latest)
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/vk2discord:latest vk2discord/latest
- docker push epicmorg/vk2discord:latest
##########
- name: qBitTorrent (latest)
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/qbittorrent:latest qbittorrent/latest
- docker push epicmorg/qbittorrent:latest
- name: qBitTorrent (unstable)
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/qbittorrent:unstable qbittorrent/latest
- docker push epicmorg/qbittorrent:unstable
- name: qBitTorrent (stable)
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/qbittorrent:stable qbittorrent/stable
- docker push epicmorg/qbittorrent:stable
#########################################
#### Our minor priority images
#########################################