forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aws-cli-2.yaml
74 lines (64 loc) · 1.74 KB
/
aws-cli-2.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# awscli use these documentation files (*.rst) in aws help command
#nolint:documentation
package:
name: aws-cli-2
version: 2.22.18
epoch: 0
description: "Universal Command Line Interface for Amazon Web Services (v2)"
copyright:
- license: Apache-2.0
options:
# melange generates incorrect SCA provides for vendored copies of
# libraries
no-provides: true
dependencies:
provides:
- aws-cli=${{package.full-version}}
runtime:
- groff
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- openssf-compiler-options
- posix-libc-utils # need ldd
- python-3.11
- python-3.11-dev
- wolfi-base
pipeline:
- uses: git-checkout
with:
repository: https://github.com/aws/aws-cli
expected-commit: 4f42c0921fde873f16a947bc306dc88528ae19b3
tag: ${{package.version}}
- runs: |
./configure \
--prefix=/usr/ \
--with-install-type=portable-exe \
--with-download-deps
- uses: autoconf/make
- uses: autoconf/make-install
# manually fix the symlinks, waiting for upstream fix
# ref: https://github.com/aws/aws-cli/issues/8467
- runs: |
rm ${{targets.contextdir}}/usr/bin/aws
rm ${{targets.contextdir}}/usr/bin/aws_completer
ln -s /usr/lib/aws-cli/aws ${{targets.contextdir}}/usr/bin/aws
ln -s /usr/lib/aws-cli/aws_completer ${{targets.contextdir}}/usr/bin/aws_completer
- uses: strip
test:
pipeline:
- name: Verify aws-cli-v2 installation
runs: |
aws --version || exit 1
aws help
aws_completer --version
aws_completer --help
update:
enabled: true
github:
identifier: aws/aws-cli
use-tag: true
tag-filter: "2."