Skip to content

Commit f71697e

Browse files
committed
test configuring bsae images
1 parent e76e575 commit f71697e

9 files changed

Lines changed: 84 additions & 85 deletions

File tree

.rwx/package.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
on:
2+
cli:
3+
init:
4+
sha: ${{ event.git.sha }}
5+
publish: false
6+
17
base:
28
image: ubuntu:24.04
39
config: rwx/base 1.0.0
@@ -50,7 +56,7 @@ tasks:
5056
if [[ -f "$DIRECTORY/rwx-test-base.json" ]]; then
5157
cat "$DIRECTORY/rwx-test-base.json" | tee $RWX_VALUES/base-images
5258
else
53-
echo '[{"image": "ubuntu:24.04", "config": "rwx/base 1.0.0"}]' | tee $RWX_VALUES/base-images
59+
echo '[{"image": "ubuntu:24.04", "config": "rwx/base 1.0.0", "arch": "x86_64"}]' | tee $RWX_VALUES/base-images
5460
fi
5561
cp "$DIRECTORY/rwx-test.yml" test-run.yml
5662
filter:
@@ -70,6 +76,7 @@ tasks:
7076
package-digest: ${{ tasks.package.values.digest }}
7177
base-image: ${{ parallel.image }}
7278
base-config: ${{ parallel.config }}
79+
base-arch: ${{ parallel.arch }}
7380

7481
- key: publish
7582
if: ${{ init.publish }}

golang/install/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ To install the latest version of go:
55
```yaml
66
tasks:
77
- key: go
8-
call: golang/install 1.2.0
8+
call: golang/install 1.2.1
99
```
1010
1111
To install a specific version:
1212
1313
```yaml
1414
tasks:
1515
- key: go
16-
call: golang/install 1.2.0
16+
call: golang/install 1.2.1
1717
with:
1818
go-version: "1.21.5"
1919
```

golang/install/rwx-ci-cd.config.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

golang/install/rwx-ci-cd.template.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

golang/install/rwx-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: golang/install
2-
version: 1.2.0
2+
version: 1.2.1
33
description: Install the Go programming language
44
source_code_url: https://github.com/rwx-cloud/packages/tree/main/golang/install
55
issue_tracker_url: https://github.com/rwx-cloud/packages/issues

golang/install/rwx-test-base.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[
2+
{
3+
"image": "ubuntu:22.04",
4+
"config": "rwx/base 1.0.0",
5+
"arch": "x86_64"
6+
},
7+
{
8+
"image": "ubuntu:22.04",
9+
"config": "rwx/base 1.0.0",
10+
"arch": "arm64"
11+
},
12+
{
13+
"image": "ubuntu:24.04",
14+
"config": "rwx/base 1.0.0",
15+
"arch": "x86_64"
16+
},
17+
{
18+
"image": "ubuntu:24.04",
19+
"config": "rwx/base 1.0.0",
20+
"arch": "arm64"
21+
}
22+
]

golang/install/rwx-test.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
base:
2+
image: ${{ init.base-image }}
3+
config: ${{ init.base-config }}
4+
arch: ${{ init.base-arch }}
5+
6+
tasks:
7+
- key: install-1-20
8+
call: ${{ init.package-digest }}
9+
with:
10+
go-version: "1.20"
11+
12+
- key: install-1-20--assert
13+
use: install-1-20
14+
run: go version | grep 1.20
15+
16+
- key: install-old-version
17+
call: ${{ init.package-digest }}
18+
with:
19+
go-version: "1.8"
20+
21+
- key: install-old-version--assert
22+
use: install-old-version
23+
run: go version | grep 1.8
24+
25+
- key: install-patch-version
26+
call: ${{ init.package-digest }}
27+
with:
28+
go-version: "1.20.14"
29+
30+
- key: install-patch-version--assert
31+
use: install-patch-version
32+
run: go version | grep 1.20.14
33+
34+
- key: install-1-23-4
35+
call: ${{ init.package-digest }}
36+
with:
37+
go-version: "1.23.4"
38+
39+
- key: install-1-23-4--assert
40+
use: install-1-23-4
41+
run: go version | grep "1\.23\.4"
42+
43+
- key: can-install-tools-and-use-them
44+
use: install-1-23-4
45+
run: |
46+
go install gotest.tools/gotestsum@latest
47+
gotestsum --version

rwx/greeting/rwx-test.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
11
base:
2-
image: ubuntu:24.04
3-
config: rwx/base 1.0.0
2+
image: ${{ init.base-image }}
3+
config: ${{ init.base-config }}
44

55
tasks:
6-
- key: cat-base-config
7-
run: |
8-
echo "Image is $IMAGE"
9-
echo "Config is $CONFIG"
10-
env:
11-
IMAGE: ${{ init.base-image }}
12-
CONFIG: ${{ init.base-config }}
13-
146
- key: test
157
call: ${{ init.package-digest }}
168
with:

rwx/package/rwx-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
base:
2-
image: ubuntu:24.04
3-
config: rwx/base 1.0.0
2+
image: ${{ init.base-image }}
3+
config: ${{ init.base-config }}
44

55
tasks:
66
- key: code

0 commit comments

Comments
 (0)