fix: use official Docker actions like WarrantyHub workflow
CI/CD Pipeline / Build & Deploy (push) Failing after 41s

This commit is contained in:
wh-leader
2026-05-11 11:25:29 +02:00
parent 8d85589f0c
commit 47bf985a79
+21 -10
View File
@@ -12,16 +12,27 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Build and Push Docker Image - name: Set up Docker Buildx
run: | uses: docker/setup-buildx-action@v3
# Login to registry with:
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login gitlab.impresion3d.pro -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin driver-opts: image=moby/buildkit:v0.12.5
# Build image - name: Login to registry
docker build -t gitlab.impresion3d.pro/root/davidaragon-portfolio:latest . uses: docker/login-action@v3
with:
# Push to registry registry: gitlab.impresion3d.pro
docker push gitlab.impresion3d.pro/root/davidaragon-portfolio:latest username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
platforms: linux/amd64
push: true
tags: |
gitlab.impresion3d.pro/root/davidaragon-portfolio:latest
- name: Deploy to Portainer - name: Deploy to Portainer
run: | run: |