mirror of
https://github.com/Lissy93/personal-security-checklist.git
synced 2024-10-01 01:35:37 -04:00
Merge e3821cad96
into dea78e287c
This commit is contained in:
commit
7c6744a60a
30
.github/workflows/docker-image.yml
vendored
Normal file
30
.github/workflows/docker-image.yml
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
name: Docker Build and Push
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build_and_push:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Login to Docker Hub
|
||||
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
||||
|
||||
- name: Build and Push Docker Image for personal-security-checklist
|
||||
run: |
|
||||
docker buildx create --use
|
||||
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
||||
docker buildx build --platform linux/amd64,linux/arm64 -t vouu/personal-security-checklist:14-09-2024 . --push
|
||||
docker buildx build --platform linux/amd64,linux/arm64 -t vouu/personal-security-checklist . --push
|
50
.github/workflows/insert-checklist.yml
vendored
50
.github/workflows/insert-checklist.yml
vendored
@ -1,50 +0,0 @@
|
||||
name: ☑️ Generate and insert markdown from YAML
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [ master ]
|
||||
paths: ['personal-security-checklist.yml']
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository 🛎️
|
||||
uses: actions/checkout@v2
|
||||
|
||||
# Get current date-time (used for commit message)
|
||||
- name: Get Date 📅
|
||||
id: date
|
||||
run: echo "::set-output name=date::$(date +'%d-%b-%Y')"
|
||||
|
||||
# Downloads + installs Python (used for running gen scripts)
|
||||
- name: Set up Python 🐍
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.x'
|
||||
|
||||
# Install contents of requirements.txt
|
||||
- name: Install dependencies 📥
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
cd lib && pip install -r requirements.txt
|
||||
|
||||
# The make command triggers all the Python scripts, generates output
|
||||
- name: Run make command 🔨
|
||||
run: python lib/generate.py
|
||||
|
||||
# Commit and push the outputed JSON files
|
||||
- name: Commit and push generated files ⤴️
|
||||
run: |
|
||||
git config --global user.name "Liss-Bot"
|
||||
git config --global user.email "alicia-gh-bot@mail.as93.net"
|
||||
git pull origin master
|
||||
git add CHECKLIST.md
|
||||
if git diff --staged --quiet; then
|
||||
echo "Nothin new added, so nothing to commit, exiting..."
|
||||
else
|
||||
git commit -m "Updates checklist (auto-generated, on ${{ steps.date.outputs.date }})"
|
||||
git push
|
||||
fi
|
38
.github/workflows/insert-contributors.yml
vendored
38
.github/workflows/insert-contributors.yml
vendored
@ -1,38 +0,0 @@
|
||||
# Inserts list of community members into ./README.md
|
||||
name: 💓 Inserts Contributors & Sponsors
|
||||
on:
|
||||
workflow_dispatch: # Manual dispatch
|
||||
schedule:
|
||||
- cron: '45 1 * * 0' # At 01:45 on Sunday.
|
||||
|
||||
jobs:
|
||||
# Job #1 - Fetches sponsors and inserts table into readme
|
||||
insert-sponsors:
|
||||
runs-on: ubuntu-latest
|
||||
name: Inserts Sponsors 💓
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Updates readme with sponsors
|
||||
uses: JamesIves/github-sponsors-readme-action@1.0.5
|
||||
with:
|
||||
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||
file: .github/README.md
|
||||
|
||||
# Job #2 - Fetches contributors and inserts table into readme
|
||||
insert-contributors:
|
||||
runs-on: ubuntu-latest
|
||||
name: Inserts Contributors 💓
|
||||
steps:
|
||||
- name: Updates readme with contributors
|
||||
uses: akhilmhdh/contributors-readme-action@v2.3.4
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
image_size: 80
|
||||
readme_path: .github/README.md
|
||||
columns_per_row: 6
|
||||
commit_message: 'docs: Updates contributors list'
|
||||
committer_username: liss-bot
|
||||
committer_email: liss-bot@d0h.co
|
||||
|
45
.github/workflows/maintain-gh-pages.yml
vendored
45
.github/workflows/maintain-gh-pages.yml
vendored
@ -1,45 +0,0 @@
|
||||
name: 🐙 Update gh-pages site
|
||||
|
||||
on:
|
||||
workflow_dispatch: # Manual dispatch
|
||||
push:
|
||||
branches: [ master ]
|
||||
paths: ['CHECKLIST.md']
|
||||
|
||||
jobs:
|
||||
update-readme:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Configure git
|
||||
run: |
|
||||
git config --global user.email "liss-bot@d0h.co"
|
||||
git config --global user.name "Liss.Bot"
|
||||
|
||||
- name: Copy CHECKLIST.md to gh-pages
|
||||
run: |
|
||||
# Fetch all branches
|
||||
git fetch --all
|
||||
|
||||
# Switch to gh-pages branch
|
||||
git checkout gh-pages
|
||||
|
||||
# Copy CHECKLIST from master branch
|
||||
git checkout master -- CHECKLIST.md
|
||||
|
||||
# Move and rename CHECKLIST.md to the root
|
||||
mv CHECKLIST.md README.md
|
||||
|
||||
# Check if there are changes, if so commit and push
|
||||
if [ -n "$(git status --porcelain)" ]; then
|
||||
git add README.md
|
||||
git commit -m "Update README.md from master branch"
|
||||
git push origin gh-pages
|
||||
else
|
||||
echo "No changes in README.md"
|
||||
fi
|
17
.github/workflows/sync-mirror.yml
vendored
17
.github/workflows/sync-mirror.yml
vendored
@ -1,17 +0,0 @@
|
||||
# Pushes the contents of the repo to the Codeberg mirror
|
||||
name: 🪞 Mirror to Codeberg
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '30 0 * * 0'
|
||||
jobs:
|
||||
codeberg:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with: { fetch-depth: 0 }
|
||||
- uses: pixta-dev/repository-mirroring-action@v1
|
||||
with:
|
||||
target_repo_url: git@codeberg.org:alicia/personal-security-checklist.git
|
||||
ssh_private_key: ${{ secrets.CODEBERG_SSH }}
|
||||
|
@ -0,0 +1,6 @@
|
||||
FROM node:hydrogen-alpine
|
||||
COPY . /app
|
||||
WORKDIR /app/web
|
||||
RUN yarn add -D vite
|
||||
EXPOSE 5173
|
||||
CMD ["yarn","dev", "--host", "0.0.0.0"]
|
Loading…
Reference in New Issue
Block a user