File tree 2 files changed +29
-12
lines changed
2 files changed +29
-12
lines changed Original file line number Diff line number Diff line change 48
48
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
49
49
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.short-sha.outputs.sha }}
50
50
labels : ${{ steps.meta.outputs.labels }}
51
- # - name: Generate artifact attestation
52
- # uses: actions/attest-build-provenance@v2
53
- # with:
54
- # subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
55
- # subject-digest: ${{ steps.push.outputs.digest }}
56
- # push-to-registry: true
51
+ - name : Generate artifact attestation
52
+ uses : actions/attest-build-provenance@v2
53
+ with :
54
+ subject-name : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
55
+ subject-digest : ${{ steps.push.outputs.digest }}
56
+ push-to-registry : false
Original file line number Diff line number Diff line change @@ -66,14 +66,31 @@ You can also utilise the Docker image without installing the binary executable f
66
66
Simply enter the subsequent command or reference the ` compose.yaml ` file.
67
67
68
68
``` bash
69
- docker run --rm ghcr.io/mingcheng/aigitcommit:latest \
70
- -v .:\r epo:ro \
71
- -e OPENAI_API_BASE=' <openai api base>' \
72
- -e OPENAI_API_TOKEN=' <token>' \
73
- -e OPENAI_MODEL_NAME=' <model name>'
69
+ docker run \
70
+ --rm \
71
+ -v $PWD :/repo:ro \
72
+ -e OPENAI_API_BASE=' <api base>' \
73
+ -e OPENAI_API_TOKEN=' <api token>' \
74
+ -e OPENAI_MODEL_NAME=' <model name>' \
75
+ -e OPENAI_API_PROXY=' <the proxy address if you need>' \
76
+ ghcr.io/mingcheng/aigitcommit
74
77
```
75
78
76
- Notice: If you wish to utilise the ` --commit ` option, you must ensure that the ` /repo ` directory is writable.
79
+ Notice: If you wish to utilise the ` --commit ` option, you must ensure that the ` /repo ` directory is writable:
80
+
81
+ ``` bash
82
+ docker run \
83
+ --rm \
84
+ -it \
85
+ -v $PWD :/repo:rw \
86
+ -e OPENAI_API_BASE=' <api base>' \
87
+ -e OPENAI_API_TOKEN=' <api token>' \
88
+ -e OPENAI_MODEL_NAME=' <model name>' \
89
+ -e OPENAI_API_PROXY=' <the proxy address if you need>' \
90
+ ghcr.io/mingcheng/aigitcommit --commit
91
+ ```
92
+
93
+ Tips: You can add ` --yes ` options to skip the confirm.
77
94
78
95
### Git Hook
79
96
You can’t perform that action at this time.
0 commit comments