Skip to content
Merged
Show file tree
Hide file tree
Changes from 59 commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
b74ec33
initial commit gha
ARoldan-wz Jan 12, 2026
da890c6
test1
ARoldan-wz Jan 13, 2026
fa90936
fix 1.0
ARoldan-wz Jan 14, 2026
b661ac9
remove load-config
ARoldan-wz Jan 14, 2026
0c5d4f7
change pro by master
ARoldan-wz Jan 14, 2026
76782b8
fix gha
ARoldan-wz Jan 14, 2026
f756279
coment AWS_PROFILE
ARoldan-wz Jan 14, 2026
5bf49b8
remove comments
ARoldan-wz Jan 14, 2026
bb2649b
change folder deploy
ARoldan-wz Jan 14, 2026
3cd2049
fix gha
ARoldan-wz Jan 14, 2026
274df58
fix Create bundle
ARoldan-wz Jan 14, 2026
7ffb9a9
fix folderCache
ARoldan-wz Jan 14, 2026
161a0b8
fix gha
ARoldan-wz Jan 14, 2026
ac7a469
add image php for load-config
ARoldan-wz Jan 14, 2026
11a5a23
steps
ARoldan-wz Jan 14, 2026
422afd9
steps 2
ARoldan-wz Jan 14, 2026
f284f5e
refactor 1.0
ARoldan-wz Jan 15, 2026
f27cb3a
refactor 1.1
ARoldan-wz Jan 15, 2026
24a63ae
add container php image
ARoldan-wz Jan 15, 2026
30b1c26
fix add container php image
ARoldan-wz Jan 15, 2026
efec60b
fix add image container php
ARoldan-wz Jan 15, 2026
78d6649
add imagen to job
ARoldan-wz Jan 15, 2026
13431d9
test2
ARoldan-wz Jan 15, 2026
bddd434
add OICD
ARoldan-wz Jan 15, 2026
265e3a3
only pro
ARoldan-wz Jan 15, 2026
32ebcf6
Update sonar-and-test-S3.yaml
adrianmartin23 Jan 15, 2026
f1ccdf6
Update sonar-and-test-S3.yaml
adrianmartin23 Jan 15, 2026
5793d75
Update sonar-and-test-S3.yaml
adrianmartin23 Jan 15, 2026
1ecb618
Update sonar-and-test-S3.yaml
adrianmartin23 Jan 15, 2026
e6cf161
Update test-reusable-sonarqube.yml
adrianmartin23 Jan 15, 2026
6d91594
Update sonar-and-test-S3.yaml
adrianmartin23 Jan 15, 2026
13d78a8
Update sonar-and-test-S3.yaml
adrianmartin23 Jan 15, 2026
5bef3b7
Update sonar-and-test-S3.yaml
adrianmartin23 Jan 15, 2026
d0e3e76
Update sonar-and-test-S3.yaml
adrianmartin23 Jan 15, 2026
487ac3b
Update sonar-and-test-S3.yaml
adrianmartin23 Jan 15, 2026
3a63857
Update sonar-and-test-S3.yaml
adrianmartin23 Jan 15, 2026
fe79143
Update sonar-and-test-S3.yaml
adrianmartin23 Jan 15, 2026
e832d89
Update sonar-and-test-S3.yaml
adrianmartin23 Jan 16, 2026
6165b9b
Update sonar-and-test-S3.yaml
adrianmartin23 Jan 16, 2026
a8aa1f1
Update sonar-and-test-S3.yaml
adrianmartin23 Jan 16, 2026
0841eb2
install zip
ARoldan-wz Jan 19, 2026
72fe116
rm Jenkinfile and manifests
ARoldan-wz Jan 19, 2026
66f3288
clean env var
ARoldan-wz Jan 19, 2026
fbb20bb
add Create Github Release
ARoldan-wz Jan 20, 2026
2c484dc
fix
ARoldan-wz Jan 20, 2026
971c034
install gh
ARoldan-wz Jan 20, 2026
9cd7f83
gh login
ARoldan-wz Jan 20, 2026
c722db2
fix
ARoldan-wz Jan 20, 2026
43e70b3
fix2
ARoldan-wz Jan 20, 2026
c4fdbf6
change login gh
ARoldan-wz Jan 20, 2026
f8b51e2
fix3
ARoldan-wz Jan 20, 2026
5768450
fix GH_TOKEN
ARoldan-wz Jan 20, 2026
eb5e8b0
catch version makefile
ARoldan-wz Jan 20, 2026
3a693b5
fix gh --notes
ARoldan-wz Jan 20, 2026
4550177
manual approve added
ARoldan-wz Jan 21, 2026
6194d79
add 'environment'
ARoldan-wz Jan 22, 2026
4468739
issue
ARoldan-wz Jan 26, 2026
dc82544
remove environment
ARoldan-wz Jan 26, 2026
f3bfce6
remove action
ARoldan-wz Jan 26, 2026
c448c06
added changes
ARoldan-wz Jan 27, 2026
8531738
remove comment sonar
ARoldan-wz Jan 27, 2026
cdabd22
fix
ARoldan-wz Jan 29, 2026
1be62a2
cambios implementados
ARoldan-wz Jan 29, 2026
8107cec
remove branch workflow
ARoldan-wz Jan 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
115 changes: 115 additions & 0 deletions .github/workflows/sonar-and-test-S3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
name: Test Sonarqube Composer and S3

on:
workflow_dispatch:
push:
branches:
- '**'
env:
FOLDER: "dist"
foldersCache: "vendor/"
CODE_SOURCE_DEFAULT: "aplazame"
AWS_REGION: 'eu-central-1'
AWS_ACCOUNT: '666356151544'


permissions:
contents: read
id-token: write
issues: write

jobs:
test-sonarqube:
name: Test SonarQube Scan
uses: ./.github/workflows/test-reusable-sonarqube.yml
secrets:
SONAR_TOKEN: ${{ secrets.WZ_SONAR_TOKEN }}

test-composer:
name: Test Composer Install
needs: test-sonarqube
runs-on: ${{ vars.AWS_RG_NAME_PRO }}
steps:
- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 #v6.0.1
with:
fetch-depth: 0

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '5.6'
extensions: mbstring, intl, xml, curl, zip, json
tools: composer:v2

- name: Install AWS CLI
run: |
sudo apt-get install unzip zip curl -y
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install --update
aws --version

- name: Configure aws credentials
uses: aws-actions/configure-aws-credentials@61815dcd50bd041e203e49132bacad1fd04d2708 #v5.1.1
with:
role-to-assume: ${{ vars.AWS_OIDC_ROLE_TF_PRO }}
role-session-name: ${{ github.run_id }}
aws-region: ${{ vars.WZ_OIDC_AWS_REGION }}

- name: Get cache
env:
s3Path: s3://aplazameshared-jenkins-cache/Aplazame-Backend/prestashop/v1-dependencies-${{ github.sha }}.tar.gz
run: |
set -e
aws s3 cp --quiet ${s3Path} cache.tar.gz --profile AplazameSharedServices || exit 0
[ -f cache.tar.gz ] && tar -xf cache.tar.gz
aws s3 cp --quiet ${s3Path} cache.tar.gz --profile AplazameSharedServices

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comando repetido


- name: Composer Install
run: composer install --prefer-dist

- name: Upload cache
env:
s3Path: s3://aplazameshared-jenkins-cache/Aplazame-Backend/prestashop/v1-dependencies-${{ github.sha }}.tar.gz
run: |
set -e
MATCHES=$(aws s3 ls ${s3Path} --profile AplazameSharedServices| wc -l)
[ "$MATCHES" = "0" ] && [ ! -f cache.tar.gz ] && tar -czf cache.tar.gz ${foldersCache} && aws s3 cp --quiet cache.tar.gz ${s3Path} --profile AplazameSharedServices
exit 0

- name: Check syntax
run: make syntax.checker

- name: Make Styleci happy
run: make style

- name: Create Bundle
Comment thread
adrianmartin23 marked this conversation as resolved.
run: |
sudo apt update && sudo apt install zip -y
make zip

- name: Deploy to S3
Comment thread
adrianmartin23 marked this conversation as resolved.
run: |
Comment thread
adrianmartin23 marked this conversation as resolved.
aws s3 cp --acl public-read aplazame.latest.zip s3://aplazame/modules/prestashop/ --profile Aplazame

- name: Await Manual Approval
if: ${{ github.event_name == 'push' }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

y que sea en la rama master

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sigue sin resolverse

uses: trstringer/manual-approval@v1
with:
secret: ${{ secrets.AP_GH_RELEASE_TOKEN_OLD }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

token incorrecto, usar ${{ github.TOKEN }}

minimum-approvals: 1
approvers: 'AR40873_wzk'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

usuario incorrecto

timeout-minutes: 10
issue-title: "Manual Approval Required for Release (First change Makefile's App Version)"
issue-body: "Please approve or deny the deploy."

- name: Create GitHub Release
Comment thread
adrianmartin23 marked this conversation as resolved.
env:
GH_TOKEN: ${{ secrets.AP_GH_RELEASE_TOKEN_OLD }}
run: |
sudo apt-get install gh -y
echo "***************Create Release***************"
APP_VERSION=$(grep "^version" Makefile | awk -F= '{print $2}' | xargs)
echo "$APP_VERSION"
gh release create "$APP_VERSION" --notes "Release created by GitHub Actions"
24 changes: 24 additions & 0 deletions .github/workflows/test-reusable-sonarqube.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Test SonarQube Scan
on:
workflow_call:
secrets:
SONAR_TOKEN:
description: "Token for SonarQube"
required: true


jobs:
test-sonarqube:
name: Test SonarQube Scan
runs-on: ${{ vars.AWS_RG_NAME_PRO }}
steps:
- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 #v6.0.1
with:
fetch-depth: 0

- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@a31c9398be7ace6bbfaf30c0bd5d415f843d45e9 #v7.0.0
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
#SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eliminar si no va a ser usado

188 changes: 0 additions & 188 deletions Jenkinsfile

This file was deleted.

20 changes: 0 additions & 20 deletions jenkins/jenkins-sonar.yaml

This file was deleted.

24 changes: 0 additions & 24 deletions jenkins/php.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion sonar-scanner.properties → sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ sonar.projectVersion=1.0
sonar.projectBaseDir=/usr/src
sonar.python.coverage.reportPaths=/src/coverage.xml
sonar.host.url=https://sonarqube.aplazame.org/
sonar.password=
#sonar.password=
sonar.ws.timeout=600
sonar.log.level=DEBUG
ActiveQualityGate=false
Loading