ci: remplace actions/checkout par git clone natif (runner host sans node)
Build & Deploy / build-push-deploy (push) Failing after 0s
Build & Deploy / build-push-deploy (push) Failing after 0s
This commit is contained in:
@@ -14,14 +14,17 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
run: |
|
||||
rm -rf workspace
|
||||
git clone http://192.168.1.18:3000/Shaz/Le-site-de-ma-mamounette.git workspace
|
||||
cd workspace && git checkout ${{ gitea.sha }}
|
||||
|
||||
- name: Login au registry Gitea
|
||||
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login gitea.lan -u shaz --password-stdin
|
||||
|
||||
- name: Build & push image
|
||||
run: |
|
||||
docker build -t ${{ env.IMAGE }}:latest .
|
||||
docker build -t ${{ env.IMAGE }}:latest workspace/
|
||||
docker push ${{ env.IMAGE }}:latest
|
||||
|
||||
- name: Déployer sur le serveur
|
||||
|
||||
Reference in New Issue
Block a user