generates container image tag, based on github branch/tag name
# 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
caching for golang modules and build cache
# 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 buildx and login to a container registry
# 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, with cachix cache
# 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, with github actions cache
# 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"