Skip to content

reusable github composite actions

License

Notifications You must be signed in to change notification settings

kloudlite/actions

 
 

Repository files navigation

collection of my common github actions

generate-image-tag

generates container image tag, based on github branch/tag name

how to use

# it will set 2 env variables
# IMAGE_TAG - image tag
# OVERRIDE_PUSHED_IMAGE - if true, it will not use pushed image tag
- uses: kloudlite/actions/generate-image-tag@v1

setup-cache-go

caching for golang modules and build cache

how to use

# it will setup cache/restore with github cache actions
- uses: kloudlite/actions/setup-cache-go@v1
  with:
    cache_key: "cache-key"
    working_directory: .

setup-docker

setup docker buildx and login to a container registry

how to use

# it will setup docker buildx and login to docker registry
# args:
#   docker_registry (default: "ghcr.io") -
#   docker_username (required)
#   docker_password (required)
- uses: kloudlite/actions/setup-docker@v1
  with:
    docker_registry: "ghcr.io"
    docker_username: ${{ secrets.DOCKER_USERNAME }}
    docker_password: ${{ secrets.DOCKER_PASSWORD }}

setup-nix-cachix

setup nix, with cachix cache

how to use

# args:
#   flake_lock (default: "./flake.lock") - path to flake.lock
#   nix_develop_arguments (default: ".#default") - nix develop extra arguments
#   cachix_cache_name (required) - cachix cache name
#   cachix_auth_token (required) - cachix auth token
- uses: kloudlite/actions/setup-nix-cachix@v1
  with:
    flake_lock: "./flake.lock"
    nix_develop_arguments: ".#default"
    cachix_cache_name: "my-cache"
    cachix_auth_token:  ${{ secrets.CACHIX_AUTH_TOKEN }}

setup-nix-github

setup nix, with github actions cache

how to use

# args:
#   flake_lock (default: "./flake.lock") - path to flake.lock
#   nix_develop_arguments (default: ".#default") - nix develop extra arguments
- uses: kloudlite/actions/setup-nix-github@v1
  with:
    flake_lock: "./flake.lock"
    nix_develop_arguments: ".#default"

About

reusable github composite actions

Resources

License

Stars

Watchers

Forks

Packages

No packages published