-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If implemented, this code will enable flux packages to use this action to run sops commands. Signed-off-by: Soule BA <[email protected]>
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Setup SOPS | ||
description: A GitHub Action for running sops commands | ||
author: Soule BA | ||
branding: | ||
color: blue | ||
icon: command | ||
inputs: | ||
version: | ||
description: "strict semver" | ||
required: true | ||
default: "3.7.1" | ||
runs: | ||
using: composite | ||
steps: | ||
- name: "Download and copy the binary to /usr/local/bin" | ||
shell: bash | ||
run: | | ||
VERSION=${{ inputs.version }} | ||
REPO_URL=https://github.com/mozilla/sops/releases/download | ||
BIN_URL="${REPO_URL}/v${VERSION}/sops-v${VERSION}.linux" | ||
curl -fL --no-progress-meter ${BIN_URL} -o /tmp/sops | ||
chmod +x /tmp/sops | ||
sudo mv /tmp/sops /usr/local/bin | ||
which sops | ||
sops --version |