WIP CI: testing docker-compose build

This commit is contained in:
manuasir
2020-07-30 00:02:07 +02:00
parent 6f2bf0cb3f
commit a00d16afcd
2 changed files with 12 additions and 16 deletions

View File

@@ -1,18 +1,14 @@
name: Docker Image CI
name: Wazuh Docker pipeline
on:
push:
branches: [ feature-github-actions ]
pull_request:
branches: [ feature-github-actions ]
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: docker build wazuh --tag wazuh:$(date +%s)
- name: Check out code
uses: actions/checkout@v2
- name: Build the docker-compose stack
run: docker-compose -f docker-compose.yml
- name: Check running containers
run: docker ps -a

View File

@@ -3,7 +3,7 @@ version: '2'
services:
wazuh:
image: wazuh/wazuh:3.13.1_7.8.0
build: wazuh
hostname: wazuh-manager
restart: always
ports:
@@ -13,7 +13,7 @@ services:
- "55000:55000"
elasticsearch:
image: wazuh/wazuh-elasticsearch:3.13.1_7.8.0
build: elasticsearch
hostname: elasticsearch
restart: always
ports:
@@ -30,7 +30,7 @@ services:
mem_limit: 2g
kibana:
image: wazuh/wazuh-kibana:3.13.1_7.8.0
build: kibana
hostname: kibana
restart: always
depends_on:
@@ -40,7 +40,7 @@ services:
- wazuh:wazuh
nginx:
image: wazuh/wazuh-nginx:3.13.1_7.8.0
build: nginx
hostname: nginx
restart: always
environment: