updating site
Some checks failed
Build and Deploy docker container / build (push) Failing after 3m28s
Some checks failed
Build and Deploy docker container / build (push) Failing after 3m28s
This commit is contained in:
@ -6,16 +6,18 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: cstuder/apprise-ga@master
|
||||
- name: Send message job is starting
|
||||
uses: cstuder/apprise-ga@master
|
||||
with:
|
||||
title: 'jonb.io site deployment'
|
||||
message: >-
|
||||
Push received on {{ ref }}
|
||||
Started build for:
|
||||
Commit by {{ head_commit.author.name }}: {{ head_commit.message |
|
||||
truncate(128) }} ({{ head_commit.id[0:7] }})
|
||||
env:
|
||||
APPRISE_URL: '${{ secrets.APPRISE_URL }}'
|
||||
- uses: actions/checkout@v4
|
||||
- name: Checkout main
|
||||
uses: actions/checkout@v4
|
||||
- name: Install Yarn
|
||||
run: npm install -g yarn
|
||||
- name: Set Node.js 22.x
|
||||
@ -26,7 +28,8 @@ jobs:
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
||||
- uses: actions/cache@v4
|
||||
- name: Restore cache
|
||||
uses: actions/cache@v4
|
||||
id: yarn-cache
|
||||
with:
|
||||
path: |
|
||||
@ -35,8 +38,10 @@ jobs:
|
||||
key: '${{ runner.os }}-yarn-${{ hashFiles(''**/yarn.lock'') }}'
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
- run: yarn
|
||||
- run: EXPORT=1 UNOPTIMIZED=1 yarn build
|
||||
- name: Update node modules
|
||||
run: yarn
|
||||
- name: Build app and export to ./out
|
||||
run: EXPORT=1 UNOPTIMIZED=1 yarn build
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Login to Docker Hub
|
||||
@ -54,19 +59,20 @@ jobs:
|
||||
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
|
||||
- name: Deploy App
|
||||
- name: Deploy qpp
|
||||
uses: fjogeleit/http-request-action@v1
|
||||
with:
|
||||
url: 'http://192.168.4.11:7777/v1/update'
|
||||
method: GET
|
||||
bearerToken: '${{ secrets.DEPLOYTOKEN }}'
|
||||
timeout: 60000
|
||||
- uses: cstuder/apprise-ga@master
|
||||
- name: Send message app has deployed
|
||||
uses: cstuder/apprise-ga@master
|
||||
with:
|
||||
title: 'jonb.io site deployment'
|
||||
message: >-
|
||||
Push received on {{ ref }}
|
||||
Deployed {{head_commit.message}}
|
||||
Commit by {{ head_commit.author.name }}: {{ head_commit.message |
|
||||
truncate(128) }} ({{ head_commit.id[0:7] }}) deployed.
|
||||
truncate(128) }} ({{ head_commit.id[0:7] }})
|
||||
env:
|
||||
APPRISE_URL: '${{ secrets.APPRISE_URL }}'
|
Reference in New Issue
Block a user