diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 5a209e60..44d66f5b 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -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) \ No newline at end of file + - 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 \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index c2edca63..8440fa6c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: