f152379882
CI/CD Pipeline / Build & Deploy (pull_request) Successful in 22s
Apply the same concurrency pattern used in the python-project-template: - cancel-in-progress: false prevents the shared act_runner from cancelling in-progress steps when a new push lands - pull_request trigger ensures PRs are validated before merge - workflow_dispatch allows manual re-runs
29 lines
921 B
YAML
29 lines
921 B
YAML
name: CI/CD Pipeline
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
workflow_dispatch:
|
|
|
|
# Serialise runs on the shared act_runner: prevents two simultaneous runs from
|
|
# cancelling each other's in-progress steps (observed in older portfolio runs).
|
|
# See python-project-template-internal/.gitea/workflows/ci.yaml for the same
|
|
# pattern with full context (runs 794 and 799).
|
|
concurrency:
|
|
group: ci-${{ github.ref }}
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
build:
|
|
name: Build & Deploy
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Build and push Docker image
|
|
run: |
|
|
docker login gitlab.impresion3d.pro -u "${{ secrets.DOCKER_USERNAME }}" -p "${{ secrets.DOCKER_PASSWORD }}"
|
|
docker build -t gitlab.impresion3d.pro/root/davidaragon-portfolio:latest .
|
|
docker push gitlab.impresion3d.pro/root/davidaragon-portfolio:latest |