removing old drone files
This commit is contained in:
parent
7cb14a42af
commit
ebc0ae0c5a
|
|
@ -1,37 +0,0 @@
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: ssh
|
|
||||||
name: Homegrade | Déploiment du Thème
|
|
||||||
|
|
||||||
clone:
|
|
||||||
disable: true
|
|
||||||
|
|
||||||
server:
|
|
||||||
host:
|
|
||||||
from_secret: build_server_host
|
|
||||||
user:
|
|
||||||
from_secret: build_server_user
|
|
||||||
password:
|
|
||||||
from_secret: build_server_password
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Clonage du Repo
|
|
||||||
commands:
|
|
||||||
- git clone https://git.deligraph.be/Antoine/homegrade_theme_production.git
|
|
||||||
- name: Installation du package
|
|
||||||
commands:
|
|
||||||
- cd homegrade_theme_production
|
|
||||||
- npm install
|
|
||||||
- name: Build du package
|
|
||||||
commands:
|
|
||||||
- cd homegrade_theme_production
|
|
||||||
- npm run production
|
|
||||||
- name: deploy-via-sftp
|
|
||||||
image: appleboy/drone-scp
|
|
||||||
settings:
|
|
||||||
host: sftp.your-server.com
|
|
||||||
username: your-username
|
|
||||||
password: your-password # Utiliser une variable d'environnement pour plus de sécurité
|
|
||||||
port: 22
|
|
||||||
target: /test/
|
|
||||||
source: ./build/* # Répertoire source avec les fichiers à déployer
|
|
||||||
|
|
@ -1,23 +0,0 @@
|
||||||
name: Docker Image
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Log in to Docker Hub
|
|
||||||
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
||||||
- name: Build and push Docker image
|
|
||||||
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
push: true
|
|
||||||
tags: cschlosser/drone-ftps
|
|
||||||
Loading…
Reference in New Issue
Block a user