diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2022-05-14 19:56:06 +0200 |
---|---|---|
committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2022-05-14 19:56:06 +0200 |
commit | e964ec8f74b644d66ca166a7524adcc3a82709c9 (patch) | |
tree | b1a87d6a1333ae87fda5121b1993a050079afa43 /.gitlab-ci.yml | |
parent | 16ef06ffb363b6304d0d5269b30dedbdd07288df (diff) | |
download | macroblog.rs-e964ec8f74b644d66ca166a7524adcc3a82709c9.tar.gz macroblog.rs-e964ec8f74b644d66ca166a7524adcc3a82709c9.tar.bz2 macroblog.rs-e964ec8f74b644d66ca166a7524adcc3a82709c9.zip |
feat: Move code to blog
- Move most logic of the blog to blog.rs, making it easier to test.
- Now the file contains the creation date of the blog post to be parsed.
- Add chrono to parse datetime, so later we can order by date.
- Refactor gitlab pipeline, move `before_script` to a proper place.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 12003e9..8cae0ac 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,14 +1,9 @@ -before_script: - - apt-get update -qy - - apt-get install -y ruby-dev - - gem install dpl - stages: - test - production test: - image: rust:latest + image: rust:alpine stage: test script: - cargo install cargo2junit @@ -25,6 +20,9 @@ production: needs: - test script: + - apt-get update -qy + - apt-get install -y ruby-dev + - gem install dpl - gem install faraday -v 1.8.0 - dpl --provider=heroku --app=$HEROKU_APP --api-key=$HEROKU_API_KEY only: |