fix(ci): use exact WarrantyHub working pattern with Docker actions
CI/CD Pipeline / Build & Deploy (push) Failing after 36s
CI/CD Pipeline / Build & Deploy (push) Failing after 36s
This commit is contained in:
+18
-10
@@ -9,17 +9,25 @@ jobs:
|
||||
name: Build & Deploy
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
run: |
|
||||
git clone https://oauth2:${{ secrets.GITEATOKEN }}@gitlab.impresion3d.pro/root/davidaragon-portfolio.git repo
|
||||
cd repo && git log -1 --oneline
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Build and push image
|
||||
run: |
|
||||
cd repo
|
||||
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login gitlab.impresion3d.pro -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
||||
docker build -t gitlab.impresion3d.pro/root/davidaragon-portfolio:latest .
|
||||
docker push gitlab.impresion3d.pro/root/davidaragon-portfolio:latest
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to registry
|
||||
uses: docker/login-action@v3
|
||||
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
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user