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: on: [push]
push:
branches: [ feature-github-actions ]
pull_request:
branches: [ feature-github-actions ]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - name: Check out code
- name: Build the Docker image uses: actions/checkout@v2
run: docker build wazuh --tag wazuh:$(date +%s) - 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: services:
wazuh: wazuh:
image: wazuh/wazuh:3.13.1_7.8.0 build: wazuh
hostname: wazuh-manager hostname: wazuh-manager
restart: always restart: always
ports: ports:
@@ -13,7 +13,7 @@ services:
- "55000:55000" - "55000:55000"
elasticsearch: elasticsearch:
image: wazuh/wazuh-elasticsearch:3.13.1_7.8.0 build: elasticsearch
hostname: elasticsearch hostname: elasticsearch
restart: always restart: always
ports: ports:
@@ -30,7 +30,7 @@ services:
mem_limit: 2g mem_limit: 2g
kibana: kibana:
image: wazuh/wazuh-kibana:3.13.1_7.8.0 build: kibana
hostname: kibana hostname: kibana
restart: always restart: always
depends_on: depends_on:
@@ -40,7 +40,7 @@ services:
- wazuh:wazuh - wazuh:wazuh
nginx: nginx:
image: wazuh/wazuh-nginx:3.13.1_7.8.0 build: nginx
hostname: nginx hostname: nginx
restart: always restart: always
environment: environment: