From bbf7e0bfd378c528406008b6944b44fa3819c1ef Mon Sep 17 00:00:00 2001 From: maxime-cool Date: Fri, 19 Jan 2024 15:45:12 +0100 Subject: [PATCH] activated drone CI --- .drone.yml | 96 +++++++++++++++++++-------------------- .gitea/workflows/test.yml | 46 +++++++++---------- 2 files changed, 71 insertions(+), 71 deletions(-) diff --git a/.drone.yml b/.drone.yml index 7db5f16..a95a46b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,50 +1,50 @@ -# kind: pipeline -# type: docker -# name: default +kind: pipeline +type: docker +name: default -# steps: -# - name: Version check -# image: plugins/hugo -# commands: -# - echo "Checking Hugo version." -# - hugo version -# - echo "Checking folder" -# - ls -# - echo "Checking theme" -# - cd themes -# - ls -# - echo "Checking ananke" -# - cd ananke -# - ls -# - name: submodule fetch -# image: drone/git -# commands: -# - git submodule update --init --recursive -# - name: checking theme was fetched -# image: plugins/hugo -# commands: -# - cd themes -# - cd ananke -# - ls -# - name: Build -# image: plugins/hugo -# settings: -# validate: true -# extended: true -# config: ./hugo.toml -# - name: check Build -# image: plugins/hugo -# commands: -# - ls -# - cd public -# - ls -# - name: Deploy -# image: plugins/hugo -# environment: -# AWS_ACCESS_KEY_ID: -# from_secret: AWS_ACCESS_KEY_ID -# AWS_SECRET_ACCESS_KEY: -# from_secret: AWS_SECRET_ACCESS_KEY -# commands: -# - hugo deploy --config hugo.toml \ No newline at end of file +steps: + - name: Version check + image: plugins/hugo + commands: + - echo "Checking Hugo version." + - hugo version + - echo "Checking folder" + - ls + - echo "Checking theme" + - cd themes + - ls + - echo "Checking ananke" + - cd ananke + - ls + - name: submodule fetch + image: drone/git + commands: + - git submodule update --init --recursive + - name: checking theme was fetched + image: plugins/hugo + commands: + - cd themes + - cd ananke + - ls + - name: Build + image: plugins/hugo + settings: + validate: true + extended: true + config: ./hugo.toml + - name: check Build + image: plugins/hugo + commands: + - ls + - cd public + - ls + - name: Deploy + image: plugins/hugo + environment: + AWS_ACCESS_KEY_ID: + from_secret: AWS_ACCESS_KEY_ID + AWS_SECRET_ACCESS_KEY: + from_secret: AWS_SECRET_ACCESS_KEY + commands: + - hugo deploy --config hugo.toml \ No newline at end of file diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 6ebd76f..0bbc6f4 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -1,24 +1,24 @@ -name: Gitea Actions -run-name: ${{ gitea.actor }} is testing Gitea Actions 🚀 -on: [push] +# name: Gitea Actions +# run-name: ${{ gitea.actor }} is testing Gitea Actions 🚀 +# on: [push] -jobs: - build and deploy: - steps: - - uses: actions/checkout@v3 - - run: | - pwd - echo 'hello world' - ls -a - - name: Setup Hugo - uses: https://github.com/peaceiris/actions-hugo@v2 - with: - hugo-version: 'latest' - extended: true - - name: Build - run: hugo --minify --config hugo.toml - - name: Deploy - env: - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - run: hugo deploy --config hugo.toml \ No newline at end of file +# jobs: +# build and deploy: +# steps: +# - uses: actions/checkout@v3 +# - run: | +# pwd +# echo 'hello world' +# ls -a +# - name: Setup Hugo +# uses: https://github.com/peaceiris/actions-hugo@v2 +# with: +# hugo-version: 'latest' +# extended: true +# - name: Build +# run: hugo --minify --config hugo.toml +# - name: Deploy +# env: +# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} +# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} +# run: hugo deploy --config hugo.toml \ No newline at end of file