Adapt goss run with codebuild configuration

This commit is contained in:
Victor Carlos Erenu
2026-06-19 19:24:22 +07:00
parent a185f0dc75
commit 27287b1e19
+12 -4
View File
@@ -59,10 +59,18 @@ jobs:
version: v0.3.16
- name: Execute Goss tests (wazuh-manager)
run: dgoss run wazuh/wazuh-manager:${{env.WAZUH_IMAGE_VERSION}}
env:
GOSS_SLEEP: 30
GOSS_FILE: .github/.goss.yaml
run: |
# Start the Wazuh manager container
docker run -d --name wazuh_test wazuh/wazuh-manager:4.14.6
# 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:
runs-on: codebuild-github-actions-codebuild-runner-devops-amd-${{ github.run_id }}-${{ github.run_attempt }}