cache
All checks were successful
Build and Deploy docker container / build (push) Successful in 3m18s
Build and Deploy docker container / deploy (push) Successful in 50s

This commit is contained in:
Jonathan Branan 2024-10-27 19:56:24 -05:00
parent 4b0cd35609
commit 4ccd827681

View File

@ -28,45 +28,21 @@ jobs:
name: Build and push name: Build and push
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with:
push: false push: true
tags: git.jonb.io/jblu/jonbio:latest tags: git.jonb.io/jblu/jonbio:latest
- cache-from: type=registry,ref=user/app:latest
uses: actions/setup-go@v3 cache-to: type=inline
with:
go-version: '1.20'
-
name: list workdir
run: ls -la ${{ github.workspace }}
-
uses: https://gitea.com/actions/go-hashfiles@v0.0.1
id: get-hash
with:
workdir: ${{ github.workspace }}
patterns: |-
.next/*
-
name: Echo hash
run: echo ${{ steps.get-hash.outputs.hash }} && echo ${{ steps.get-hash.outputs.matched-files }}
# - deploy:
# name: Restore cache runs-on: ubuntu-latest
# uses: actions/cache@v4 env:
# with: RUNNER_TOOL_CACHE: /toolcache
# path: .next/cache steps:
# key: ${{ runner.os }}-nextjs-${{ steps.get-hash.outputs.hash('**/yarn.lock') }}-${{ steps.get-hash.outputs.hash('**/yarn.lock', '**.[jt]sx') }} -
# restore-keys: | name: Deploy App
# ${{ steps.get-hash.outputs.hash }} uses: fjogeleit/http-request-action@v1
with:
# deploy: url: 'http://192.168.4.11:7777/v1/update'
# runs-on: ubuntu-latest method: 'GET'
# env: bearerToken: ${{ secrets.DEPLOYTOKEN }}
# RUNNER_TOOL_CACHE: /toolcache timeout: 60000
# 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