Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build via docker #267

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -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 changes: 0 additions & 50 deletions .github/workflows/insert-checklist.yml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/insert-contributors.yml

This file was deleted.

45 changes: 0 additions & 45 deletions .github/workflows/maintain-gh-pages.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/sync-mirror.yml

This file was deleted.

6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]