mirror of
https://github.com/the-second-city/do-as-sudo.git
synced 2025-10-29 03:56:02 -07:00
21 lines
431 B
YAML
21 lines
431 B
YAML
skip_clone: true
|
|
when:
|
|
- branch: master
|
|
event: push
|
|
|
|
steps:
|
|
- name: clone to build-artifacts
|
|
image: sh
|
|
environment:
|
|
BUILD_DIR: /mnt/build-artifacts/blog
|
|
commands:
|
|
- rm -rf "$BUILD_DIR"/*
|
|
- rm -rf "$BUILD_DIR"/.[!.]* 2>/dev/null || true
|
|
- git clone --recurse-submodules "$CI_REPO_CLONE_URL" .
|
|
- cp -r . "$BUILD_DIR/"
|
|
|
|
- name: redeploy
|
|
image: sh
|
|
commands:
|
|
- ssh blog
|