fix(ci): use exact WarrantyHub working pattern with Docker actions
CI/CD Pipeline / Build & Deploy (push) Failing after 36s

This commit is contained in:
wh-leader
2026-05-11 13:14:46 +02:00
parent 7e90812373
commit 83845f4894
+18 -10
View File
@@ -9,17 +9,25 @@ jobs:
name: Build & Deploy name: Build & Deploy
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - uses: actions/checkout@v4
run: |
git clone https://oauth2:${{ secrets.GITEATOKEN }}@gitlab.impresion3d.pro/root/davidaragon-portfolio.git repo
cd repo && git log -1 --oneline
- name: Build and push image - name: Set up Docker Buildx
run: | uses: docker/setup-buildx-action@v3
cd repo
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login gitlab.impresion3d.pro -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin - name: Login to registry
docker build -t gitlab.impresion3d.pro/root/davidaragon-portfolio:latest . uses: docker/login-action@v3
docker push gitlab.impresion3d.pro/root/davidaragon-portfolio:latest with:
registry: gitlab.impresion3d.pro
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: gitlab.impresion3d.pro/root/davidaragon-portfolio:latest
- name: Deploy to Portainer - name: Deploy to Portainer
run: | run: |