Skip to content

Commit c45e203

Browse files
authored
improved publishes and deploys (#18)
* improve publishes * more logs * update client * revert * fix * revert fix * added known_hosts creationsupport * added insecure_ignore_host_key * fix deploy
1 parent 6dd1793 commit c45e203

4 files changed

Lines changed: 292 additions & 46 deletions

File tree

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ You can download the pre-built binary from the [releases](https://github.com/sxw
2121
### Install from source
2222

2323
```bash
24-
go install github.com/sxwebdev/gcx@latest
24+
go install github.com/sxwebdev/gcx/cmd/gcx@latest
2525
```
2626

2727
### Install via script
@@ -134,15 +134,18 @@ archives:
134134
# Artifact publishing configuration
135135
blobs:
136136
- provider: s3
137+
name: s3-storage
137138
bucket: your-bucket-name
138139
directory: "releases/{{.Version}}"
139140
region: us-west-1
140141
endpoint: https://s3.example.com
141142

142143
- provider: ssh
143-
server: "storage.example.com"
144+
name: stage-server
145+
server: "stage.example.com"
144146
user: "deployer"
145147
key_path: "~/.ssh/deploy_key"
148+
insecure_ignore_host_key: false
146149
directory: "/var/www/releases/{{.Version}}"
147150

148151
# Deployment configuration
@@ -152,6 +155,7 @@ deploys:
152155
server: "prod.example.com"
153156
user: "deployer"
154157
key_path: "~/.ssh/deploy_key"
158+
insecure_ignore_host_key: false
155159
commands:
156160
- systemctl stop myapp
157161
- cp /var/www/releases/myapp/latest/myapp /usr/local/bin/
@@ -169,6 +173,7 @@ deploys:
169173
server: "staging.example.com"
170174
user: "deployer"
171175
key_path: "~/.ssh/deploy_key"
176+
insecure_ignore_host_key: true
172177
commands:
173178
- docker-compose -f /opt/myapp/docker-compose.yml down
174179
- cp /var/www/releases/myapp/latest/myapp /opt/myapp/

0 commit comments

Comments
 (0)