diff options
author | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2022-06-22 18:11:22 +0200 |
---|---|---|
committer | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2022-06-22 18:25:32 +0200 |
commit | 4a80e110f67f1c12c0bbc297b7cf439aa2ed3eba (patch) | |
tree | bf35bedee5f3fb53e77fb6a3e3f6e72c7ebba06f | |
parent | 93ad4d03b9d87d6177514de27bb94d9230da82e6 (diff) | |
download | gabrielgio.me-4a80e110f67f1c12c0bbc297b7cf439aa2ed3eba.tar.gz gabrielgio.me-4a80e110f67f1c12c0bbc297b7cf439aa2ed3eba.tar.bz2 gabrielgio.me-4a80e110f67f1c12c0bbc297b7cf439aa2ed3eba.zip |
feat: Move from gitlab to sr.ht pipeline
-rw-r--r-- | .build.yml | 21 | ||||
-rw-r--r-- | .gitlab-ci.yml | 24 | ||||
-rw-r--r-- | .hugo_build.lock | 0 |
3 files changed, 21 insertions, 24 deletions
diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..d58a4e6 --- /dev/null +++ b/.build.yml @@ -0,0 +1,21 @@ +image: alpine/latest +packages: + - rsync + - hugo + +secrets: + - 008c4f67-b864-47f8-9790-cd32f2ae8516 + +environment: + deploy: builds@gabrielgio.me + +tasks: + - build: | + cd gabrielgio.me + hugo + - deploy: | + cd gabrielgio.me + sshopts="ssh -o StrictHostKeyChecking=no" + rsync --rsh="$sshopts" -rP public/* $deploy:/var/www/gabrielgio.me/ + + diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 3076f29..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,24 +0,0 @@ -# This file is a template, and might need editing before it works on your project. ---- -# All available Hugo versions are listed here: -# https://gitlab.com/pages/hugo/container_registry -image: registry.gitlab.com/pages/hugo:latest - -variables: - GIT_SUBMODULE_STRATEGY: recursive - GIT_STRATEGY: clone - -test: - script: - - hugo --minify - except: - - master - -pages: - script: - - hugo - artifacts: - paths: - - public - only: - - master diff --git a/.hugo_build.lock b/.hugo_build.lock new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/.hugo_build.lock |