File tree Expand file tree Collapse file tree 5 files changed +96
-1
lines changed
Expand file tree Collapse file tree 5 files changed +96
-1
lines changed Original file line number Diff line number Diff line change 1+ # If you prefer the allow list template instead of the deny list, see community template:
2+ # https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
3+ #
4+ # Binaries for programs and plugins
5+ * .exe
6+ * .exe~
7+ * .dll
8+ * .so
9+ * .dylib
10+
11+ # Test binary, built with `go test -c`
12+ * .test
13+
14+ # Output of the go coverage tool, specifically when used with LiteIDE
15+ * .out
16+
17+ # Dependency directories (remove the comment below to include it)
18+ # vendor/
19+
20+ # Go workspace file
21+ go.work
Original file line number Diff line number Diff line change 1+ FROM ghcr.io/deweb-services/deployment-script/deployment-script:latest as builder
2+
3+ COPY entrypoint.sh /entrypoint.sh
4+
5+ RUN chmod +x /entrypoint.sh
6+
7+ ENTRYPOINT ["/entrypoint.sh" ]
Original file line number Diff line number Diff line change 1- # delete_cpu_action
1+ # Create CPU docker action
2+
3+ ## Inputs
4+
5+ ## ` access-key `
6+
7+ ** Required** Your access key for nodeshift platform.
8+
9+ ## ` secret-key `
10+
11+ ** Required** Your secret key for nodeshift platform.
12+
13+ ## ` uuid `
14+
15+ UUID of your deployment.
16+
17+ ## Outputs
18+
19+ ## ` success `
20+
21+ IP address of your deployment.
22+
23+ ## Example usage
24+
25+ steps:
26+ - name: Delete cpu action step
27+ id: delete-cpu
28+ uses: deweb-services/delete_cpu_action@v0.1
29+ with:
30+ access-key: 'a12352244527cmzpxg74tq'
31+ secret-key: 'jffffkpdfffffajkfqoiyruffffkgospjrm74fkmdik'
32+ uuid: 'd40aa34f-49ce-4481-8d05-e78f8f9f9af7'
33+
34+ - name: Get the output
35+ run: echo "The uuid is ${{ steps.delete-cpu.outputs.uuid }}"
Original file line number Diff line number Diff line change 1+ # action.yml
2+ name : ' Delete CPU'
3+ description : ' Delete CPU by uuid'
4+ inputs :
5+ access-key :
6+ description : ' access-key'
7+ required : true
8+ default : ' access-key'
9+ secret-key :
10+ description : ' secret-key'
11+ required : true
12+ default : ' secret-key'
13+ uuid :
14+ description : ' uuid of cpu to delete'
15+ required : true
16+ outputs :
17+ success :
18+ description : ' success flag'
19+ runs :
20+ using : ' docker'
21+ image : ' Dockerfile'
22+ args :
23+ - ${{ inputs.access-key }}
24+ - ${{ inputs.secret-key }}
25+ - ${{ inputs.uuid }}
Original file line number Diff line number Diff line change 1+ #! /bin/sh -l
2+
3+ /usr/bin/deploy_script cpu delete --access_key $1 --secret_key $2 --uuid " $3 "
4+
5+ export RESULT=$( cat result)
6+
7+ echo " $RESULT " >> $GITHUB_OUTPUT
8+
You can’t perform that action at this time.
0 commit comments