From 2b3e41a4aba849cffd15dfe9e18fc0fc156fdef3 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Tue, 9 Jul 2024 19:27:35 +0000 Subject: Added Dev Container --- .devcontainer/Dockerfile | 14 ++++++++++++++ .devcontainer/devcontainer.json | 15 +++++++++++++++ .gitea/.gitea/workflows/renovate.yml | 26 -------------------------- .gitea/workflows/renovate.yml | 26 ++++++++++++++++++++++++++ 4 files changed, 55 insertions(+), 26 deletions(-) create mode 100644 .devcontainer/Dockerfile create mode 100644 .devcontainer/devcontainer.json delete mode 100644 .gitea/.gitea/workflows/renovate.yml create mode 100644 .gitea/workflows/renovate.yml diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..3d982d9 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,14 @@ +FROM mcr.microsoft.com/devcontainers/base:bookworm + +RUN apt-get update && apt-get install -y \ + curl \ + tar \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* + +ENV ZOLA_VERSION=0.19.1 + + RUN curl -L https://github.com/getzola/zola/releases/download/v${ZOLA_VERSION}/zola-v${ZOLA_VERSION}-x86_64-unknown-linux-gnu.tar.gz -o zola.tar.gz \ + && tar -xzf zola.tar.gz \ + && mv zola /bin/zola \ + && rm zola.tar.gz \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..080109a --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,15 @@ +{ + "name": "Zola Dev Container", + "build": { + "dockerfile": "Dockerfile" + }, + "forwardPorts": [ + 1111 + ], + "portsAttributes": { + "1111": { + "label": "Application", + "onAutoForward": "notify" + } + } +} \ No newline at end of file diff --git a/.gitea/.gitea/workflows/renovate.yml b/.gitea/.gitea/workflows/renovate.yml deleted file mode 100644 index 5c3c468..0000000 --- a/.gitea/.gitea/workflows/renovate.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: RenovateBot - -on: - schedule: - - cron: "@daily" - push: - branches: - - master - -jobs: - renovate: - container: ghcr.io/renovatebot/renovate:37 - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Run renovate - run: | - renovate - env: - LOG_LEVEL: debug - RENOVATE_CONFIG_FILE: renovate.config.cjs - RENOVATE_REPOSITORIES: ${{ gitea.repository }} - RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }} diff --git a/.gitea/workflows/renovate.yml b/.gitea/workflows/renovate.yml new file mode 100644 index 0000000..5c3c468 --- /dev/null +++ b/.gitea/workflows/renovate.yml @@ -0,0 +1,26 @@ +name: RenovateBot + +on: + schedule: + - cron: "@daily" + push: + branches: + - master + +jobs: + renovate: + container: ghcr.io/renovatebot/renovate:37 + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Run renovate + run: | + renovate + env: + LOG_LEVEL: debug + RENOVATE_CONFIG_FILE: renovate.config.cjs + RENOVATE_REPOSITORIES: ${{ gitea.repository }} + RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }} -- cgit v1.2.3