Skip to content

Commit

Permalink
Merge pull request #38 from lidofinance/feature/deploy
Browse files Browse the repository at this point in the history
Added deploy step to wf, added minimal ansibly code for deploy.
  • Loading branch information
sergeyWh1te authored Oct 10, 2024
2 parents b323ec4 + 3d84335 commit c87d8a4
Show file tree
Hide file tree
Showing 28 changed files with 2,367 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/actions/configure_sops/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Configure sops
description: Import gpg key and mask sops secrets
inputs:
gpg_private_key:
description: 'GPG private key exported as an ASCII armored version or its base64 encoding'
required: true

runs:
using: "composite"
steps:
- uses: ./.github/actions/import_gpg
with:
gpg_private_key: "${{ inputs.gpg_private_key }}"
- run: |
./scripts/mask_sops_secrets_in_gh.py
shell: bash
61 changes: 61 additions & 0 deletions .github/actions/import_gpg/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# https://help.github.com/en/articles/metadata-syntax-for-github-actions
name: 'Import GPG'
description: 'GitHub Action to easily import a GPG key'
author: 'crazy-max'
branding:
color: 'yellow'
icon: 'lock'

inputs:
gpg_private_key:
description: 'GPG private key exported as an ASCII armored version or its base64 encoding'
required: true
passphrase:
description: 'Passphrase of the GPG private key'
required: false
git_config_global:
description: 'Set Git config global'
default: 'false'
required: false
git_user_signingkey:
description: 'Set GPG signing keyID for this Git repository'
default: 'false'
required: false
git_commit_gpgsign:
description: 'Sign all commits automatically'
default: 'false'
required: false
git_tag_gpgsign:
description: 'Sign all tags automatically'
default: 'false'
required: false
git_push_gpgsign:
description: 'Sign all pushes automatically'
default: 'if-asked'
required: false
git_committer_name:
description: 'Commit author''s name'
required: false
git_committer_email:
description: 'Commit author''s email'
required: false
workdir:
description: 'Working directory (below repository root)'
default: '.'
required: false
fingerprint:
description: 'Specific fingerprint to use (subkey)'
required: false

outputs:
fingerprint:
description: 'Fingerprint of the GPG key (recommended as user ID)'
keyid:
description: 'Low 64 bits of the X.509 certificate SHA-1 fingerprint'
email:
description: 'Email address associated with the GPG key'

runs:
using: 'node20'
main: 'dist/index.js'
post: 'dist/index.js'
17 changes: 17 additions & 0 deletions .github/actions/import_gpg/dist/index.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions .github/actions/import_gpg/dist/index.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit c87d8a4

Please sign in to comment.