feat: project setup
This commit is contained in:
commit
02188ad59c
3 changed files with 76 additions and 0 deletions
1
README.md
Normal file
1
README.md
Normal file
|
|
@ -0,0 +1 @@
|
|||
# collection
|
||||
48
checkout/action.yml
Normal file
48
checkout/action.yml
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
# SPDX-License-Identifier: EUPL-1.2
|
||||
name: "checkout"
|
||||
description: "Checkout a git repository at a particular version"
|
||||
author: "Louis Seubert"
|
||||
inputs:
|
||||
repository:
|
||||
required: false
|
||||
description: >
|
||||
The path to the repository to checkout. Must be accessible with the
|
||||
pipeline token or publicly. Can be either an HTTPS or SSH URL.
|
||||
default: "${{ forgejo.server_url }}/${{ forgejo.repository }}.git"
|
||||
ref:
|
||||
required: false
|
||||
description: >
|
||||
The branch, tag or SHA to checkout. When checking out the repository that
|
||||
triggered a workflow, this defaults to the reference or SHA for that
|
||||
event. Otherwise, uses the default branch.
|
||||
default: "${{ forgejo.ref || forgejo.sha }}"
|
||||
path:
|
||||
required: false
|
||||
description: >
|
||||
The directory to checkout the repository into. If the directory does not
|
||||
exist, it will be created.
|
||||
default: "${{ forgejo.workspace }}"
|
||||
depth:
|
||||
required: false
|
||||
description: >
|
||||
Create a shallow clone with a history truncated to the specified number of
|
||||
commits. If the repository contains submodules, these are also cloned
|
||||
shallowly. A value of `0` implies no shallow cloning.
|
||||
default: "0"
|
||||
submodule:
|
||||
required: false
|
||||
description: >
|
||||
After the clone is created, initialize and clone submodules within based
|
||||
on the provided configuration.
|
||||
default: "false"
|
||||
filter:
|
||||
required: false
|
||||
description: >
|
||||
Use the partial clone feature and request that the server sends a subset
|
||||
of reachable objects according to a given object filter. The default value
|
||||
is `auto` to allow the server to decide.
|
||||
default: "auto"
|
||||
runs:
|
||||
using: "docker"
|
||||
image: "docker://code.geekeey.de/component/core:1.0.0"
|
||||
args: [ "checkout" ]
|
||||
27
ssh-add-key/action.yml
Normal file
27
ssh-add-key/action.yml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
# SPDX-License-Identifier: EUPL-1.2
|
||||
name: "ssh-add-key"
|
||||
description: "Configure an SSH private key and known hosts"
|
||||
author: "Louis Seubert"
|
||||
inputs:
|
||||
key:
|
||||
description: >
|
||||
The SSH private key content to install. The key will be written to
|
||||
~/.ssh/<name> and added to the SSH agent via ssh-add. Use a secret to pass
|
||||
the key value, e.g. ${{ secrets.SSH_PRIVATE_KEY }}.
|
||||
required: true
|
||||
path:
|
||||
description: >
|
||||
The directory to write the private key to. Defaults to ~/.ssh.
|
||||
required: false
|
||||
default: "~/.ssh"
|
||||
filename:
|
||||
description: >
|
||||
The filename to use when writing the private key to ~/.ssh. This also
|
||||
determines the names of the corresponding -pub and -pub.sig
|
||||
files. Defaults to "id_rsa".
|
||||
required: false
|
||||
default: "id_rsa"
|
||||
runs:
|
||||
using: "docker"
|
||||
image: "docker://code.geekeey.de/component/core:1.0.0"
|
||||
args: ["ssh-add-key"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue