Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate the procedure_push_docker_images pipeline to GHA #5651

Closed
4 tasks done
Tracked by #5652
damarisg opened this issue Aug 8, 2024 · 5 comments · Fixed by wazuh/wazuh-docker#1518 or wazuh/wazuh-docker#1524
Closed
4 tasks done
Tracked by #5652
Assignees

Comments

@damarisg
Copy link
Member

damarisg commented Aug 8, 2024

Objective
wazuh/wazuh-packages#2904

Description

Because of the Wazuh packages redesign tier 2 objective we need to migrate the procedure_push_docker_images pipeline from Jenkins to the new Jenkins.

Tasks

  • Replicate the procedure_push_docker_images pipeline in new Jenkins
  • The pipeline should allow the following parameters:
    • IMAGE_TAG
    • DOCKER_REFERENCE
    • IMAGE_NAMES
    • FILEBEAT_MODULE_VERSION
    • REVISION
    • PUSH_IMAGES
  • The pipeline should allow to be executed on demand
  • Validate the Docker images build and publish procedure with the new Jenkins works
@wazuhci wazuhci moved this to Backlog in Release 4.10.0 Aug 8, 2024
@damarisg damarisg changed the title Migrate the procedure_push_docker_images pipeline to GHA Migrate the procedure_push_docker_images pipeline to Jenkins Sep 3, 2024
@wazuhci wazuhci removed this from Release 4.10.0 Sep 5, 2024
@YisDav YisDav self-assigned this Sep 5, 2024
@wazuhci wazuhci moved this to In progress in Release 4.10.0 Sep 6, 2024
@wazuhci wazuhci moved this from In progress to Triage in Release 4.10.0 Sep 6, 2024
@wazuhci wazuhci moved this from Triage to In progress in Release 4.10.0 Sep 9, 2024
@YisDav
Copy link
Member

YisDav commented Sep 10, 2024

First version of the code for the workflow job steps was added
Tests are still pending

image

@damarisg damarisg changed the title Migrate the procedure_push_docker_images pipeline to Jenkins Migrate the procedure_push_docker_images pipeline to GHA Sep 10, 2024
@YisDav
Copy link
Member

YisDav commented Sep 10, 2024

First successful test was completed
A test DockerHub account was used for performing the tests.

image

@YisDav
Copy link
Member

YisDav commented Sep 10, 2024

Tests

Single node

Single node setup using the pushed test images (v4.8.2)

image

Results

image

image

Multi node

Multi node setup using the pushed test images (v4.8.2)

image

Results

image

image

@YisDav
Copy link
Member

YisDav commented Sep 12, 2024

Tests:

Error code handling

If any error occurs, it must exit with non-zero code

image

Succeeded workflow execution

Workflow execution

image

@wazuhci wazuhci moved this from In progress to Pending review in Release 4.10.0 Sep 12, 2024
@wazuhci wazuhci moved this from Pending review to In final review in Release 4.10.0 Sep 16, 2024
@teddytpc1
Copy link
Member

The GH secrets were updated to use the wazuhci user to upload the Docker images.

@wazuhci wazuhci moved this from In final review to Done in Release 4.10.0 Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
3 participants