github actions

This commit is contained in:
STAM 2020-11-24 01:13:32 +03:00
parent 28e4bd691a
commit 4242c38caa
2 changed files with 27 additions and 43 deletions

View File

@ -21,10 +21,34 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Log into registry
#echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
run: echo "${{ secrets.DOCKER_SERVER_KEY }}" | docker login -u "${{ secrets.DOCKER_SERVER_LOGIN }}" --password-stdin
run: echo "${{ secrets.DOCKER_SERVER_KEY }}" | docker login -u "${{ secrets.DOCKER_SERVER_LOGIN }}" --password-stdin
- name: Build Zabbix Agent
run: docker build --compress -t epicmorg/zabbix-agent:latest zabbix/agent
- name: Push Zabbix Agent
run: docker push epicmorg/zabbix-agent:latest
run: docker push epicmorg/zabbix-agent:latest
- name: Build Zabbix Java Gateway
run: docker build --compress -t epicmorg/zabbix-java-gateway:latest zabbix/java-gateway
- name: Push Zabbix Java Gateway
run: docker push epicmorg/zabbix-java-gateway:latest
- name: Build Zabbix Server with MySQL
run: docker build --compress -t epicmorg/zabbix-server-mysql:latest zabbix/server
- name: Push Zabbix Server with MySQL
run: docker push epicmorg/zabbix-server-mysql:latest
- name: Build Zabbix Web Apache2 with MySQL
run: docker build --compress -t epicmorg/zabbix-web-apache-mysql:latest zabbix/web
- name: Push Zabbix Web Apache2 with MySQL
run: docker push epicmorg/zabbix-web-apache-mysql:latest
- name: Build Zabbix Proxy SQLite3
run: docker build --compress -t epicmorg/zabbix-proxy-sqlite3:latest zabbix/proxy
- name: Push Zabbix Proxy SQLite3
run: docker push epicmorg/zabbix-proxy-sqlite3:latest
- name: Build NextCloud (latest)
run: docker build --compress -t epicmorg/nextcloud:latest nextcloud/latest
- name: Push NextCloud (latest)
run: docker push epicmorg/nextcloud:latest

View File

@ -9,46 +9,6 @@ addons:
- docker-ce
matrix:
include:
#########################################
#### Forked and fixed images
#########################################
- name: Zabbix Agent
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/zabbix-agent:latest zabbix/agent
- docker push epicmorg/zabbix-agent:latest
- name: Zabbix Java Gateway
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/zabbix-java-gateway:latest zabbix/java-gateway
- docker push epicmorg/zabbix-java-gateway:latest
- name: Zabbix Server with MySQL
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/zabbix-server-mysql:latest zabbix/server
- docker push epicmorg/zabbix-server-mysql:latest
- name: Zabbix Web Apache2 with MySQL
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/zabbix-web-apache-mysql:latest zabbix/web
- docker push epicmorg/zabbix-web-apache-mysql:latest
- name: Zabbix Proxy SQLite3
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/zabbix-proxy-sqlite3:latest zabbix/proxy
- docker push epicmorg/zabbix-proxy-sqlite3:latest
##########
- name: NextCloud (latest)
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/nextcloud:latest nextcloud/latest
- docker push epicmorg/nextcloud:latest
#########################################
#### Our High priority images