This commit is contained in:
parent
c03b7d74a7
commit
33e62b3c87
@ -12,13 +12,13 @@ jobs:
|
|||||||
# with:
|
# with:
|
||||||
# go-version: 'stable'
|
# go-version: 'stable'
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
# - name: Install Yarn
|
- name: Install Yarn
|
||||||
# run: npm install -g yarn
|
run: npm install -g yarn
|
||||||
# - name: Set Node.js 22.x
|
- name: Set Node.js 22.x
|
||||||
# uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
# with:
|
with:
|
||||||
# node-version: 22.x
|
node-version: 22.x
|
||||||
# cache: 'yarn'
|
cache: 'yarn'
|
||||||
# - name: Hash files for cache
|
# - name: Hash files for cache
|
||||||
# uses: https://gitea.com/actions/go-hashfiles@v0.0.1
|
# uses: https://gitea.com/actions/go-hashfiles@v0.0.1
|
||||||
# id: get-hash
|
# id: get-hash
|
||||||
@ -29,49 +29,43 @@ jobs:
|
|||||||
# **/*.jsx
|
# **/*.jsx
|
||||||
# **/*.ts
|
# **/*.ts
|
||||||
# **/*.tsx
|
# **/*.tsx
|
||||||
# - name: Get yarn cache directory path
|
- name: Get yarn cache directory path
|
||||||
# id: yarn-cache-dir-path
|
id: yarn-cache-dir-path
|
||||||
# run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
|
||||||
- name: test
|
|
||||||
env:
|
- uses: actions/cache@v4
|
||||||
THE_HASH: ${{ hashFiles('**/yarn.lock') }}
|
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
|
||||||
run: echo $THE_HASH
|
with:
|
||||||
# - uses: actions/cache@v4
|
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||||
# id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||||
# with:
|
restore-keys: |
|
||||||
# path: |
|
${{ runner.os }}-yarn-
|
||||||
# ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
- run: yarn
|
||||||
# ${{ github.workspace }}/.next/cache
|
- run: EXPORT=1 UNOPTIMIZED=1 yarn build
|
||||||
# key: ${{ runner.os }}-yarn-${{ steps.get-hash.outputs.hash }}
|
-
|
||||||
# restore-keys: |
|
name: Set up Docker Buildx
|
||||||
# ${{ runner.os }}-yarn-
|
uses: docker/setup-buildx-action@v3
|
||||||
# - run: yarn
|
-
|
||||||
# - run: EXPORT=1 UNOPTIMIZED=1 yarn build
|
name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
# -
|
with:
|
||||||
# name: Set up Docker Buildx
|
registry: git.jonb.io
|
||||||
# uses: docker/setup-buildx-action@v3
|
username: ${{ gitea.actor }}
|
||||||
# -
|
password: ${{ secrets.JONBIO_CI }}
|
||||||
# name: Login to Docker Hub
|
-
|
||||||
# uses: docker/login-action@v3
|
name: Build and push
|
||||||
# with:
|
uses: docker/build-push-action@v6
|
||||||
# registry: git.jonb.io
|
with:
|
||||||
# username: ${{ gitea.actor }}
|
context: .
|
||||||
# password: ${{ secrets.JONBIO_CI }}
|
push: true
|
||||||
# -
|
tags: git.jonb.io/jblu/jonbio:latest
|
||||||
# name: Build and push
|
cache-from: type=registry,ref=git.jonb.io/jblu/jonbio:buildcache
|
||||||
# uses: docker/build-push-action@v6
|
cache-to: type=registry,image-manifest=true,oci-mediatypes=true,ref=git.jonb.io/jblu/jonbio:buildcache,mode=max
|
||||||
# with:
|
-
|
||||||
# context: .
|
name: Deploy App
|
||||||
# push: true
|
uses: fjogeleit/http-request-action@v1
|
||||||
# tags: git.jonb.io/jblu/jonbio:latest
|
with:
|
||||||
# cache-from: type=registry,ref=git.jonb.io/jblu/jonbio:buildcache
|
url: 'http://192.168.4.11:7777/v1/update'
|
||||||
# cache-to: type=registry,image-manifest=true,oci-mediatypes=true,ref=git.jonb.io/jblu/jonbio:buildcache,mode=max
|
method: 'GET'
|
||||||
# -
|
bearerToken: ${{ secrets.DEPLOYTOKEN }}
|
||||||
# name: Deploy App
|
timeout: 60000
|
||||||
# uses: fjogeleit/http-request-action@v1
|
|
||||||
# with:
|
|
||||||
# url: 'http://192.168.4.11:7777/v1/update'
|
|
||||||
# method: 'GET'
|
|
||||||
# bearerToken: ${{ secrets.DEPLOYTOKEN }}
|
|
||||||
# timeout: 60000
|
|
Loading…
x
Reference in New Issue
Block a user