Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4784c1c380 | |||
| 6bb1d524b9 | |||
| bcadac0f07 | |||
| 1a2087f2ee | |||
| f2069de1ec |
@@ -5,7 +5,7 @@ After=syslog.target network.target
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/local/bin/ev
|
||||
|
||||
User=www-data
|
||||
Restart=always
|
||||
RestartSec=30
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@ jobs:
|
||||
|
||||
- run: go install github.com/psanetra/git-semver/cli@master
|
||||
|
||||
- run: git tag v$(cli next --stable=false)
|
||||
- run: git push --tags
|
||||
- run: git tag v$(cli next --stable=false) && git push --tags || echo no change
|
||||
|
||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
name: Deploy
|
||||
|
||||
on:
|
||||
# push:
|
||||
# branches: [ "main" ]
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
release:
|
||||
types: [ published ]
|
||||
create:
|
||||
types: [ tag ]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
|
||||
@@ -95,7 +95,7 @@ func (s *service) Run(ctx context.Context) (err error) {
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Second)
|
||||
defer cancel()
|
||||
|
||||
err = multierr.Combine(subReq.Close(ctx), subRes.Close(ctx), err)
|
||||
err = multierr.Combine(errs, subReq.Close(ctx), subRes.Close(ctx))
|
||||
}()
|
||||
|
||||
if errs != nil {
|
||||
|
||||
Reference in New Issue
Block a user