forked from wazuh/wazuh-docker
Adapt goss run with codebuild configuration
This commit is contained in:
@@ -59,10 +59,18 @@ jobs:
|
|||||||
version: v0.3.16
|
version: v0.3.16
|
||||||
|
|
||||||
- name: Execute Goss tests (wazuh-manager)
|
- name: Execute Goss tests (wazuh-manager)
|
||||||
run: dgoss run wazuh/wazuh-manager:${{env.WAZUH_IMAGE_VERSION}}
|
run: |
|
||||||
env:
|
# Start the Wazuh manager container
|
||||||
GOSS_SLEEP: 30
|
docker run -d --name wazuh_test wazuh/wazuh-manager:4.14.6
|
||||||
GOSS_FILE: .github/.goss.yaml
|
# Wait for the container to be fully up and running
|
||||||
|
sleep 30
|
||||||
|
# Copy the Goss binary to the container
|
||||||
|
docker exec wazuh_test mkdir -p /goss
|
||||||
|
docker cp /usr/local/bin/goss wazuh_test:/goss/goss
|
||||||
|
# Copy your test file (.goss.yaml) to the container
|
||||||
|
docker cp .github/.goss.yaml wazuh_test:/goss/goss.yaml
|
||||||
|
# Execute the validation inside the container
|
||||||
|
docker exec -w /goss wazuh_test ./goss validate
|
||||||
|
|
||||||
check-single-node:
|
check-single-node:
|
||||||
runs-on: codebuild-github-actions-codebuild-runner-devops-amd-${{ github.run_id }}-${{ github.run_attempt }}
|
runs-on: codebuild-github-actions-codebuild-runner-devops-amd-${{ github.run_id }}-${{ github.run_attempt }}
|
||||||
|
|||||||
Reference in New Issue
Block a user