fix(ci): use plain docker + git instead of GitHub actions
CI/CD Pipeline / Build & Deploy (push) Failing after 28s
CI/CD Pipeline / Build & Deploy (push) Failing after 28s
This commit is contained in:
+13
-20
@@ -9,30 +9,23 @@ jobs:
|
|||||||
name: Build & Deploy
|
name: Build & Deploy
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Clone repo
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
|
git clone --depth=1 --branch=main https://gitlab.impresion3d.pro/root/davidaragon-portfolio.git repo
|
||||||
|
cd repo && ls -la
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Build image with docker
|
||||||
uses: docker/setup-buildx-action@v3
|
run: |
|
||||||
with:
|
cd repo
|
||||||
driver-opts: image=moby/buildkit:v0.12.5
|
docker build -t gitlab.impresion3d.pro/root/davidaragon-portfolio:latest .
|
||||||
|
|
||||||
- name: Login to registry
|
- name: Login to registry
|
||||||
uses: docker/login-action@v3
|
run: |
|
||||||
with:
|
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login gitlab.impresion3d.pro -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
||||||
registry: gitlab.impresion3d.pro
|
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
||||||
|
|
||||||
- name: Build and push image
|
- name: Push image
|
||||||
uses: docker/build-push-action@v5
|
run: |
|
||||||
with:
|
docker push gitlab.impresion3d.pro/root/davidaragon-portfolio:latest
|
||||||
context: .
|
|
||||||
file: ./Dockerfile
|
|
||||||
platforms: linux/amd64
|
|
||||||
push: true
|
|
||||||
tags: |
|
|
||||||
gitlab.impresion3d.pro/root/davidaragon-portfolio:latest
|
|
||||||
|
|
||||||
- name: Stop Portainer stack
|
- name: Stop Portainer stack
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user