Files
jonbio/.gitea/workflows/build.yml
Jonathan Branan 63b8865cf3
Some checks failed
Build and Deploy docker container / build (push) Failing after 1m23s
a
2024-11-02 20:45:28 -05:00

54 lines
1.5 KiB
YAML

name: Build and Deploy docker container
on:
push:
branches: main
jobs:
build:
runs-on: ubuntu-latest
env:
RUNNER_TOOL_CACHE: /toolcache
steps:
- uses: actions/checkout@v4
- name: Set Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 22.x
cache: 'yarn'
cache-dependency-path: 'yarn.lock'
- run: yarn install
- run: EXPORT=1 UNOPTIMIZED=1 yarn build
# -
# 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