actions ci
This commit is contained in:
parent
678d6f84dc
commit
9ea6e470e2
@ -10,35 +10,45 @@ jobs:
|
||||
env:
|
||||
RUNNER_TOOL_CACHE: /toolcache
|
||||
steps:
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
-
|
||||
name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set Node.js 22.x
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
registry: git.jonb.io
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.JONBIO_CI }}
|
||||
-
|
||||
name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: true
|
||||
tags: git.jonb.io/jblu/jonbio:latest
|
||||
cache-from: type=registry,ref=git.jonb.io/jblu/jonbio:buildcache
|
||||
cache-to: type=registry,image-manifest=true,oci-mediatypes=true,ref=git.jonb.io/jblu/jonbio:buildcache,mode=max
|
||||
node-version: 22.x
|
||||
cache: 'yarn'
|
||||
cache-dependency-path: 'yarn.lock'
|
||||
run: yarn install
|
||||
run: EXPORT=1 UNOPTIMIZED=1 yarn build
|
||||
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
RUNNER_TOOL_CACHE: /toolcache
|
||||
steps:
|
||||
-
|
||||
name: Deploy App
|
||||
uses: fjogeleit/http-request-action@v1
|
||||
with:
|
||||
url: 'http://192.168.4.11:7777/v1/update'
|
||||
method: 'GET'
|
||||
bearerToken: ${{ secrets.DEPLOYTOKEN }}
|
||||
timeout: 60000
|
||||
# -
|
||||
# name: Set up Docker Buildx
|
||||
# uses: docker/setup-buildx-action@v3
|
||||
# -
|
||||
# name: Login to Docker Hub
|
||||
# uses: docker/login-action@v3
|
||||
# with:
|
||||
# registry: git.jonb.io
|
||||
# username: ${{ gitea.actor }}
|
||||
# password: ${{ secrets.JONBIO_CI }}
|
||||
# -
|
||||
# name: Build and push
|
||||
# uses: docker/build-push-action@v6
|
||||
# with:
|
||||
# push: true
|
||||
# tags: git.jonb.io/jblu/jonbio:latest
|
||||
# cache-from: type=registry,ref=git.jonb.io/jblu/jonbio:buildcache
|
||||
# cache-to: type=registry,image-manifest=true,oci-mediatypes=true,ref=git.jonb.io/jblu/jonbio:buildcache,mode=max
|
||||
|
||||
# deploy:
|
||||
# runs-on: ubuntu-latest
|
||||
# env:
|
||||
# RUNNER_TOOL_CACHE: /toolcache
|
||||
# steps:
|
||||
# -
|
||||
# name: Deploy App
|
||||
# uses: fjogeleit/http-request-action@v1
|
||||
# with:
|
||||
# url: 'http://192.168.4.11:7777/v1/update'
|
||||
# method: 'GET'
|
||||
# bearerToken: ${{ secrets.DEPLOYTOKEN }}
|
||||
# timeout: 60000
|
@ -3,10 +3,8 @@ FROM node:22-alpine
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
RUN apk add --no-cache libc6-compat
|
||||
WORKDIR /app
|
||||
COPY . /app
|
||||
RUN corepack enable
|
||||
RUN yarn;
|
||||
RUN yarn build;
|
||||
COPY ./out /app/out
|
||||
RUN npm install serve
|
||||
|
||||
ENV NODE_ENV=production
|
||||
ENV PORT=3000
|
||||
@ -14,4 +12,4 @@ ENV HOSTNAME="0.0.0.0"
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["yarn", "serve"]
|
||||
CMD ["npx", "serve", "out"]
|
@ -1,9 +1,9 @@
|
||||
/** @type {import("pliny/config").PlinyConfig } */
|
||||
const siteMetadata = {
|
||||
title: 'Jonathan\'s Blog and Likes',
|
||||
title: "Jonathan's Blog and Likes",
|
||||
author: 'Jonathan Branan',
|
||||
headerTitle: 'JonB.IO',
|
||||
description: 'Thought\'s from someone with an internet connection.',
|
||||
description: "Thought's from someone with an internet connection.",
|
||||
language: 'en-us',
|
||||
theme: 'system', // system, dark or light
|
||||
siteUrl: 'https://jonb.io',
|
||||
|
Loading…
x
Reference in New Issue
Block a user