forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
age.yaml
54 lines (47 loc) · 1.3 KB
/
age.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package:
name: age
version: 1.2.0
epoch: 3
description: A simple, modern and secure encryption tool (and Go library) with small explicit keys, no config options, and UNIX-style composability.
copyright:
- license: BSD-3-Clause
pipeline:
- uses: git-checkout
with:
repository: https://github.com/FiloSottile/age.git
tag: v${{package.version}}
expected-commit: bbe6ce5eeb1bb70cfc705d0961c943f0dd637ffd
- uses: go/bump
with:
deps: golang.org/x/[email protected]
- uses: go/build
with:
packages: ./cmd/age/
output: age
ldflags: |
-X main.Version=${{package.version}}
- uses: go/build
with:
packages: ./cmd/age-keygen/
output: age-keygen
ldflags: |
-X main.Version=${{package.version}}
- uses: strip
test:
pipeline:
- name: "Encrypt and decrypt a secret"
runs: |
echo "Hello, World!" > data.txt
age-keygen -o key.txt
age -r $(grep 'public key' key.txt | awk '{ print $4 }') -o data.txt.age data.txt
age -d -i key.txt data.txt.age > data_extracted.txt
diff data.txt data_extracted.txt
age --version
age --help
age-keygen --version
age-keygen --help
update:
enabled: true
github:
identifier: FiloSottile/age
strip-prefix: v