fix: use official Docker actions like WarrantyHub workflow
CI/CD Pipeline / Build & Deploy (push) Failing after 41s
CI/CD Pipeline / Build & Deploy (push) Failing after 41s
This commit is contained in:
@@ -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:
|
||||||
|
registry: gitlab.impresion3d.pro
|
||||||
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
# Push to registry
|
- name: Build and push image
|
||||||
docker push gitlab.impresion3d.pro/root/davidaragon-portfolio:latest
|
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: |
|
||||||
|
|||||||
Reference in New Issue
Block a user