act-cache

command module
v0.0.0-...-2d3a3e3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2023 License: MIT Imports: 6 Imported by: 0

README

act cache

The act cache allows the Github Actions to cache their artifacts. This package is copied from the the Gitea arc-runner implementation to provide a cache before Gitea contributing back.

installation

Either download a prebuilt release from the Release page or build using go build .

usage

Act config

We need to let act to know the Cache Server URL and use which token. There are two ways to do so (choose one).

  1. Ensure you add the following configuration to your ~/.actrc file:
--env ACTIONS_CACHE_URL=http://localhost:8111/
--env ACTIONS_RUNTIME_URL=http://localhost:8111/

# run act cache
act-cache > cache.log 2>&1 &

# just run act
act {event}
  1. Run act with env file (for example, put the file in project root)
# ./act/cache.env
ACTIONS_CACHE_URL=http://localhost:8111/
ACTIONS_RUNTIME_URL=http://localhost:8111/

# run act cache
act-cache > cache.log 2>&1 &

# run act with .env file
act {event} --env-file act/cache.env

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL