cache
This commit is contained in:
		@@ -28,45 +28,21 @@ jobs:
 | 
			
		||||
        name: Build and push
 | 
			
		||||
        uses: docker/build-push-action@v6
 | 
			
		||||
        with:
 | 
			
		||||
          push: false
 | 
			
		||||
          push: true
 | 
			
		||||
          tags: git.jonb.io/jblu/jonbio:latest
 | 
			
		||||
      - 
 | 
			
		||||
        uses: actions/setup-go@v3
 | 
			
		||||
        with:
 | 
			
		||||
            go-version: '1.20'
 | 
			
		||||
          cache-from: type=registry,ref=user/app:latest
 | 
			
		||||
          cache-to: type=inline
 | 
			
		||||
 | 
			
		||||
  deploy:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    env:
 | 
			
		||||
      RUNNER_TOOL_CACHE: /toolcache
 | 
			
		||||
    steps:
 | 
			
		||||
      -
 | 
			
		||||
        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 }}
 | 
			
		||||
 | 
			
		||||
      # - 
 | 
			
		||||
      #   name: Restore cache
 | 
			
		||||
      #   uses: actions/cache@v4
 | 
			
		||||
      #   with:
 | 
			
		||||
      #     path: .next/cache
 | 
			
		||||
      #     key: ${{ runner.os }}-nextjs-${{ steps.get-hash.outputs.hash('**/yarn.lock') }}-${{ steps.get-hash.outputs.hash('**/yarn.lock', '**.[jt]sx') }}
 | 
			
		||||
      #     restore-keys: |
 | 
			
		||||
      #       ${{ steps.get-hash.outputs.hash }}
 | 
			
		||||
 | 
			
		||||
  # 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: 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
 | 
			
		||||
		Reference in New Issue
	
	Block a user