Remove actions
This commit is contained in:
parent
60f7fe858b
commit
05753f9144
31
.github/workflows/build.yml
vendored
31
.github/workflows/build.yml
vendored
@ -1,31 +0,0 @@
|
|||||||
name: Build
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ main ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
lfs: true
|
|
||||||
|
|
||||||
- uses: docker/setup-buildx-action@v1
|
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: code.smartyellow.net
|
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ secrets.PACKAGE_TOKEN }}
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: |
|
|
||||||
docker build . -t code.smartyellow.net/romein/hpg-site
|
|
||||||
|
|
||||||
- name: Push
|
|
||||||
run: |
|
|
||||||
docker push code.smartyellow.net/romein/hpg-site
|
|
5
deploy
5
deploy
@ -1,5 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
npm run build
|
|
||||||
|
|
||||||
scp -r content/.vitepress/dist/* s01.smartyellow.net:/srv/hpg.romein.me
|
|
13
dockerfile
13
dockerfile
@ -1,13 +0,0 @@
|
|||||||
FROM node:16-alpine AS build
|
|
||||||
WORKDIR /app
|
|
||||||
COPY package*.json ./
|
|
||||||
RUN npm install
|
|
||||||
COPY . .
|
|
||||||
RUN npm run build
|
|
||||||
|
|
||||||
FROM nginx:alpine
|
|
||||||
COPY nginx.conf /etc/nginx/nginx.conf
|
|
||||||
WORKDIR /usr/share/nginx/html
|
|
||||||
COPY --from=build /app/content/.vitepress/dist .
|
|
||||||
|
|
||||||
ENTRYPOINT ["nginx", "-g", "daemon off;"]
|
|
Loading…
Reference in New Issue
Block a user