Skip to content

Commit

Permalink
Deploy 26e03a4 to gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Deploy from CI committed Nov 15, 2023
0 parents commit d31aedb
Show file tree
Hide file tree
Showing 82 changed files with 15,252 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.github
.serverless
baovizta-api-sdk/target
docs
node_modules
target
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Custom api URL (without the trailing slash like https://api.boavizta.org)
BOAVIZTA_API_URL="https://api.boavizta.org"
2 changes: 2 additions & 0 deletions .env.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Custom api URL (without the trailing slash like https://api.boavizta.org)
BOAVIZTA_API_URL="https://dev.api.boavizta.org"
2 changes: 2 additions & 0 deletions .env.staging
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Custom api URL (without the trailing slash like https://api.boavizta.org)
BOAVIZTA_API_URL="https://api.boavizta.org"
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

## Bug description

<!-- A clear and concise description of what the bug is. -->

## To Reproduce

<!--
Input data and route to reproduce the behavior.
-->

## Expected behavior

<!-- A clear and concise description of what you expected to happen. -->

## JSON OUTPUT

<!-- If applicable,the output given by the HOW TO -->


## Additional context

<!-- Add any other context about the problem here. -->
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels:
assignees: ''

---

## Problem

<!--
If your feature request is related to a problem, please describe it.
-->

## Solution

<!-- Describe the solution you'd like. -->

## Alternatives

<!-- Describe any alternative solutions or features you've considered. -->

## Additional context or elements

<!-- Add any other context or elements (equations, datatables, screenshots, linked resources,...) -->
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "cargo" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
# Raise pull requests for version updates against dev branch
target-branch: "dev"
- package-ecosystem: "npm"
# Look for `package.json` and `lock` files in the `root` directory
directory: "/"
# Check the npm registry for updates every day (weekdays)
schedule:
interval: "daily"
target-branch: "dev"
63 changes: 63 additions & 0 deletions .github/workflows/docker-build-and-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Build and Publish docker image

on:
push:
branches:
- 'main'
- 'dev'
tags:
- 'v*'
pull_request:
branches:
- 'main'
- 'dev'

env:
REGISTRY: ghcr.io

jobs:
build-and-push-docker-image:
name: Build Docker image and push to github docker repository
runs-on: ubuntu-latest

steps:
-
name: Checkout code
uses: actions/checkout@v3
-
name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
${{ env.REGISTRY }}/boavizta/cloud-scanner-cli
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
-
name: Log in to the Container registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v3
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

# - name: Build Docker image
# run: docker build . --file Dockerfile --tag ${{ env.REGISTRY }}/boavizta/cloud-scanner-cli:latest

# - name : Tag Docker image
# run: docker tag ${{ env.REGISTRY }}/boavizta/cloud-scanner-cli:latest ${{ env.REGISTRY }}/boavizta/cloud-scanner-cli:$(date +%s)

# - name: Push image
# run: docker push -a ${{ env.REGISTRY }}/boavizta/cloud-scanner-cli
52 changes: 52 additions & 0 deletions .github/workflows/publish-doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Publish doc to Github pages
on:
push:
branches:
- main
jobs:
publish-doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: jontze/action-mdbook@v2
with:
token: ${{secrets.GITHUB_TOKEN}}
# Optional Plugins have to be enabled
use-linkcheck: true
use-mermaid: true
use-toc: true
use-opengh: true
use-admonish: true
use-katex: true
- name: Show mdbook version
run: mdbook --version
- name: Show linkchecker version
run: mdbook-linkcheck --version
- name: Show mermaid version
run: mdbook-mermaid --version
- name: Show toc version
run: mdbook-toc --version
- name: Show open-on-gh version
run: mdbook-open-on-gh --version
- name: Show admonish version
run: mdbook-admonish --version
- name: Show katex version
run: mdbook-katex --version
- name: Deploy GitHub Pages
run: |
# This assumes your book is in the root of your repository.
# Just add a `cd` here if you need to change to another directory.
cd docs
mdbook build
mdbook test
git worktree add gh-pages
git config user.name "Deploy from CI"
git config user.email ""
cd gh-pages
# Delete the ref to avoid keeping history.
git update-ref -d refs/heads/gh-pages
rm -rf *
mv ../book/* .
git add .
git commit -m "Deploy $GITHUB_SHA to gh-pages"
git push --force --set-upstream origin gh-pages
23 changes: 23 additions & 0 deletions .github/workflows/rust-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: test suite
on: [push, pull_request]

jobs:
clippy:
name: cargo clippy and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- run: cargo clippy
- run: cargo test --all-features


# test:
# name: cargo test
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: dtolnay/rust-toolchain@stable
# - run: cargo test --all-features
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
cloud-scanner-cli/target/
target/
node_modules
.serverless
.env
.vscode
Loading

0 comments on commit d31aedb

Please sign in to comment.