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:
|
steps:
|
||||||
- name: Checkout
|
- 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
|
- name: Login au registry Gitea
|
||||||
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login gitea.lan -u shaz --password-stdin
|
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login gitea.lan -u shaz --password-stdin
|
||||||
|
|
||||||
- name: Build & push image
|
- name: Build & push image
|
||||||
run: |
|
run: |
|
||||||
docker build -t ${{ env.IMAGE }}:latest .
|
docker build -t ${{ env.IMAGE }}:latest workspace/
|
||||||
docker push ${{ env.IMAGE }}:latest
|
docker push ${{ env.IMAGE }}:latest
|
||||||
|
|
||||||
- name: Déployer sur le serveur
|
- name: Déployer sur le serveur
|
||||||
|
|||||||
Reference in New Issue
Block a user