File tree Expand file tree Collapse file tree 8 files changed +96
-32
lines changed Expand file tree Collapse file tree 8 files changed +96
-32
lines changed Original file line number Diff line number Diff line change 3
3
on :
4
4
push :
5
5
branches : [master]
6
+ tags : ['**']
6
7
pull_request :
7
8
8
9
permissions :
@@ -11,6 +12,6 @@ permissions:
11
12
packages : write
12
13
jobs :
13
14
ci :
14
- uses : input-output-hk/catalyst-forge/.github/workflows/ci.yml@ci/v1.1.0
15
+ uses : input-output-hk/catalyst-forge/.github/workflows/ci.yml@ci/v1.2.1
15
16
with :
16
- forge_version : 0.2 .0
17
+ forge_version : 0.4 .0
Original file line number Diff line number Diff line change 1
1
version : " 1.0 "
2
- global : ci : {
3
- local : [
4
- " ^check.*$ " ,
5
- " ^build.*$ " ,
6
- " ^test.*$ " ,
7
- " ^release.*$ " ,
8
- " ^publish.*$ " ,
9
- ]
10
- registries : [
11
- " ghcr.io/input-output-hk/catalyst-forge-playground " ,
12
- ]
13
- providers : github : registry : " ghcr.io "
14
- tagging : {
15
- aliases : {
16
- " go " : " examples/go "
17
- " rust " : " examples/rust "
18
- }
19
- strategy : " commit "
2
+ global : {
3
+ ci : {
4
+ local : [
5
+ " ^check.*$ " ,
6
+ " ^build.*$ " ,
7
+ " ^test.*$ " ,
8
+ ]
9
+ registries : [
10
+ " ghcr.io/input-output-hk/catalyst-forge-playground " ,
11
+ ]
12
+ providers : github : registry : " ghcr.io "
13
+ }
14
+ repo : {
15
+ defaultBranch : " master "
16
+ name : " input-output-hk/catalyst-forge-playground "
20
17
}
21
18
}
Original file line number Diff line number Diff line change 43
43
44
44
RUN go test ./...
45
45
46
- release :
46
+ github :
47
47
FROM scratch
48
48
49
49
ARG version= "v0.0.0"
@@ -61,7 +61,7 @@ release:
61
61
62
62
SAVE ARTIFACT bin/hello hello
63
63
64
- publish :
64
+ docker :
65
65
FROM debian:bookworm-slim
66
66
WORKDIR /workspace
67
67
Original file line number Diff line number Diff line change @@ -2,18 +2,18 @@ version: "1.0.0"
2
2
project : {
3
3
name : " go "
4
4
ci : targets : {
5
- publish : {
5
+ docker : {
6
6
args : {
7
- version : string | * " v0.0.0 " @env (name =" GIT_TAG " ,type =" string " )
7
+ version : string | * " v0.0.0 " @env (name =" GIT_TAG_VERSION " ,type =" string " )
8
8
}
9
9
platforms : [
10
10
" linux/amd64 " ,
11
11
" linux/arm64 " ,
12
12
]
13
13
}
14
- release : {
14
+ github : {
15
15
args : {
16
- version : string | * " v0.0.0 " @env (name =" GIT_TAG " ,type =" string " )
16
+ version : string | * " v0.0.0 " @env (name =" GIT_TAG_VERSION " ,type =" string " )
17
17
}
18
18
platforms : [
19
19
" linux/amd64 " ,
@@ -23,4 +23,26 @@ project: {
23
23
]
24
24
}
25
25
}
26
+ release : {
27
+ docker : {
28
+ on : {
29
+ merge : {}
30
+ tag : {}
31
+ }
32
+ config : {
33
+ tag : _ @forge (name =" GIT_COMMIT_HASH " )
34
+ }
35
+ }
36
+ github : {
37
+ on : tag : {}
38
+ config : {
39
+ name : string | * " dev " @forge (name =" GIT_TAG " )
40
+ prefix : project .name
41
+ token : {
42
+ provider : " env "
43
+ path : " GITHUB_TOKEN "
44
+ }
45
+ }
46
+ }
47
+ }
26
48
}
Original file line number Diff line number Diff line change 32
32
33
33
SAVE ARTIFACT ./target/${TARGET }/release/hello hello
34
34
35
- release :
35
+ github :
36
36
FROM scratch
37
37
38
38
ARG TARGETOS
@@ -47,7 +47,7 @@ release:
47
47
48
48
SAVE ARTIFACT bin/hello hello
49
49
50
- publish :
50
+ docker :
51
51
FROM debian:bookworm-slim
52
52
WORKDIR /workspace
53
53
Original file line number Diff line number Diff line change @@ -5,19 +5,41 @@ project: {
5
5
build : {
6
6
privileged : true
7
7
}
8
- release : {
8
+ docker : {
9
9
platforms : [
10
10
" linux/amd64 " ,
11
11
" linux/arm64 " ,
12
12
]
13
13
privileged : true
14
14
}
15
- publish : {
15
+ github : {
16
16
platforms : [
17
17
" linux/amd64 " ,
18
18
" linux/arm64 " ,
19
19
]
20
20
privileged : true
21
21
}
22
22
}
23
+ release : {
24
+ docker : {
25
+ on : {
26
+ merge : {}
27
+ tag : {}
28
+ }
29
+ config : {
30
+ tag : _ @forge (name =" GIT_COMMIT_HASH " )
31
+ }
32
+ }
33
+ github : {
34
+ on : tag : {}
35
+ config : {
36
+ name : string | * " dev " @forge (name =" GIT_TAG " )
37
+ prefix : project .name
38
+ token : {
39
+ provider : " env "
40
+ path : " GITHUB_TOKEN "
41
+ }
42
+ }
43
+ }
44
+ }
23
45
}
Original file line number Diff line number Diff line change 45
45
RUN uv sync --frozen --extra dev
46
46
RUN uv run pytest .
47
47
48
- publish :
48
+ docker :
49
49
FROM python:3.12-slim
50
50
51
51
ARG container= hello
@@ -60,7 +60,7 @@ publish:
60
60
ENTRYPOINT ["hello" ]
61
61
SAVE IMAGE ${container }:${tag }
62
62
63
- release :
63
+ github :
64
64
FROM scratch
65
65
66
66
COPY +build/dist dist
Original file line number Diff line number Diff line change 1
1
version : " 1.0.0 "
2
2
project : {
3
3
name : " hello "
4
+ release : {
5
+ docker : {
6
+ on : {
7
+ merge : {}
8
+ tag : {}
9
+ }
10
+ config : {
11
+ tag : _ @forge (name =" GIT_COMMIT_HASH " )
12
+ }
13
+ }
14
+ github : {
15
+ on : tag : {}
16
+ config : {
17
+ name : string | * " dev " @forge (name =" GIT_TAG " )
18
+ prefix : project .name
19
+ token : {
20
+ provider : " env "
21
+ path : " GITHUB_TOKEN "
22
+ }
23
+ }
24
+ }
25
+ }
4
26
}
You can’t perform that action at this time.
0 commit comments