The biggest arabic guide for hackintosh, now with support for opencore and macOS big sur
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

114 lines
2.5 KiB

---
kind: pipeline
type: docker
name: dev
steps:
- name: submodules
image: alpine/git
commands:
- git submodule update --init --recursive
- name: build
image: squidfunk/mkdocs-material:latest
pull: if-not-exists
entrypoint: [/bin/sh]
commands:
- python3 -m pip install --no-cache-dir -r requirements.txt
- mkdocs build --clean --verbose -d /drone/src/build/
- name: push
image: squidfunk/mkdocs-material:latest
entrypoint: [/bin/sh]
commands:
- apk add --no-cache rsync
- eval `ssh-agent -s`
- echo "$SSH_KEY" | ssh-add -
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- rsync -rv -e "ssh -p $SSH_PORT" /drone/src/build/ $SSH_USER:$SSH_DIR/dev --checksum
environment:
SSH_KEY:
from_secret: drone_ssh_key
SSH_USER:
from_secret: drone_ssh_user
SSH_PORT:
from_secret: drone_ssh_port
SSH_DIR:
from_secret: drone_ssh_dir
trigger:
branch:
- v2-dev
event:
- push
- custom
---
kind: pipeline
type: docker
name: Release
steps:
- name: submodules
image: alpine/git
commands:
- git submodule update --init --recursive
- name: build
image: squidfunk/mkdocs-material:latest
pull: if-not-exists
entrypoint: [/bin/sh]
commands:
- python3 -m pip install --no-cache-dir -r requirements.txt
- mkdocs build --clean --verbose -d /drone/src/build/
- name: Deploy
image: squidfunk/mkdocs-material:latest
entrypoint: [/bin/sh]
commands:
- apk add --no-cache rsync
- eval `ssh-agent -s`
- echo "$SSH_KEY" | ssh-add -
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- rsync -rv -e "ssh -p $SSH_PORT" /drone/src/build/ $SSH_USER:$SSH_DIR --checksum
environment:
SSH_KEY:
from_secret: drone_ssh_key
SSH_USER:
from_secret: drone_ssh_user
SSH_PORT:
from_secret: drone_ssh_port
SSH_DIR:
from_secret: drone_ssh_dir
trigger:
branch:
- v2
event:
- push
- custom
---
kind: pipeline
type: docker
name: pull-test
steps:
- name: submodules
image: alpine/git
commands:
- git submodule update --init --recursive
- name: build
image: squidfunk/mkdocs-material:latest
pull: if-not-exists
entrypoint: [/bin/sh]
commands:
- python3 -m pip install --no-cache-dir -r requirements.txt
- mkdocs build --clean --verbose -d /drone/src/build/
trigger:
event:
- pull_request