apuntes:cicd
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| apuntes:cicd [2025/03/23 17:45] – Santiago Faci | apuntes:cicd [2026/09/27 22:39] (current) – [Publicar una imagen docker en Docker Hub] Santiago Faci | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| {{ github_actions_logo.png? | {{ github_actions_logo.png? | ||
| </ | </ | ||
| + | |||
| + | ===== Testing ====== | ||
| + | |||
| + | Workflow: **Node.js** | ||
| <code yaml> | <code yaml> | ||
| Line 37: | Line 41: | ||
| </ | </ | ||
| - | < | + | ===== Crear una imagen docker ====== |
| + | |||
| + | Workflow: **Docker Image** | ||
| + | |||
| + | < | ||
| name: Docker Image CI | name: Docker Image CI | ||
| Line 58: | Line 66: | ||
| </ | </ | ||
| - | < | + | ===== Publicar una imagen docker en Docker Hub ====== |
| + | |||
| + | Workflow: **Publish Docker Image** | ||
| + | |||
| + | < | ||
| + | name: Publish docker image | ||
| + | |||
| + | on: | ||
| + | push: | ||
| + | branches: | ||
| + | - main | ||
| + | |||
| + | jobs: | ||
| + | publish-docker-image: | ||
| + | runs-on: ubuntu-latest | ||
| + | steps: | ||
| + | - uses: docker/ | ||
| + | with: | ||
| + | username: ${{ secrets.DOCKER_HUB_USERNAME }} | ||
| + | password: ${{ secrets.DOCKER_HUB_PASSWORD }} | ||
| + | - uses: actions/ | ||
| + | - uses: actions/ | ||
| + | with: | ||
| + | distribution: | ||
| + | java-version: | ||
| + | - run: mvn package | ||
| + | - run: docker build -t sfaci/games . | ||
| + | - run: docker compose up -d | ||
| + | - run: npm install -g newman | ||
| + | - run: newman run games.postman_collection.json -e local.postman_environment.json | ||
| + | - run: docker push sfaci/ | ||
| + | </ | ||
| + | |||
| + | ===== Lanzar un análisis de código con Sonarqube ====== | ||
| + | |||
| + | Workflow: **SonarQube** | ||
| + | |||
| + | <code yaml> | ||
| name: Sonarqube | name: Sonarqube | ||
| on: | on: | ||
apuntes/cicd.1742751943.txt.gz · Last modified: by Santiago Faci
