-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopentofu-1.9-1.9.0-r1.yaml
85 lines (78 loc) · 2.03 KB
/
opentofu-1.9-1.9.0-r1.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
75
76
77
78
79
80
81
82
83
84
85
package:
name: opentofu-1.9-1.9.0-r1
version: 1.9.0
epoch: 1
copyright:
- license: MPL-2.0
dependencies:
provides:
- opentofu=${{package.full-version}}
environment:
environment:
CGO_ENABLED: 0
pipeline:
- uses: git-checkout
with:
expected-commit: 0d57aa4f35998bf2847ac3acb343f9e16b5c2995
repository: https://github.com/opentofu/opentofu
tag: v${{package.version}}
- uses: go/build
with:
ldflags: -X 'github.com/opentofu/opentofu/version.dev=no'
modroot: .
output: tofu
packages: ./cmd/tofu
subpackages:
- name: ${{package.name}}-compat
description: Compat package for opentofu
dependencies:
provides:
- opentofu-compat=${{package.full-version}}
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}"/usr/local/bin
ln -s /usr/bin/tofu "${{targets.subpkgdir}}"/usr/local/bin
test:
environment:
contents:
packages:
- ${{package.name}}
pipeline:
- runs: |
/usr/local/bin/tofu --version | grep -q "${{package.version}}"
/usr/local/bin/tofu --help
- name: ${{package.name}}-local-provider-config
description: Configure opentofu to use local providers
dependencies:
provides:
- opentofu-local-provider-config=${{package.full-version}}
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}"/opentofu/provider-mirror
cat > "${{targets.subpkgdir}}"/opentofu/.opentofurc <<EOF
provider_installation {
filesystem_mirror {
path = "/opentofu/provider-mirror"
include = ["*/*"]
}
direct {
exclude = ["*/*"]
}
}
EOF
update:
enabled: true
ignore-regex-patterns:
- 'rc'
- 'beta'
github:
identifier: opentofu/opentofu
strip-prefix: v
use-tag: true
tag-filter-prefix: v1.9
test:
pipeline:
# AUTOGENERATED
- runs: |
tofu --version
tofu --help