delay daily aggregation job by 10 minutes
Some checks failed
continuous-integration/drone/push Build encountered an error
Some checks failed
continuous-integration/drone/push Build encountered an error
This commit is contained in:
@@ -50,13 +50,18 @@ steps:
|
|||||||
image: ghcr.io/goreleaser/nfpm
|
image: ghcr.io/goreleaser/nfpm
|
||||||
environment:
|
environment:
|
||||||
TZ: UTC
|
TZ: UTC
|
||||||
|
NFPM_VERSION: '${DRONE_BUILD_NUMBER}'
|
||||||
volumes:
|
volumes:
|
||||||
- name: shared
|
- name: shared
|
||||||
path: /shared
|
path: /shared
|
||||||
commands:
|
commands:
|
||||||
- cp /shared/vctp-linux-amd64 ./build/vctp-linux-amd64
|
- cp /shared/vctp-linux-amd64 ./build/vctp-linux-amd64
|
||||||
#- find .
|
#- find .
|
||||||
- nfpm package --config vctp.yml --packager rpm --target ./build/ --version ${DRONE_BUILD_NUMBER}
|
- VERSION=$(grep '^version:' vctp.yml | awk '{print $2}' | tr -d '"')
|
||||||
|
- VERSION=${VERSION#v}
|
||||||
|
- export NFPM_VERSION=$VERSION
|
||||||
|
- echo "nfpm version: ${NFPM_VERSION}"
|
||||||
|
- nfpm package --config vctp.yml --packager rpm --target ./build/
|
||||||
- ls -lah ./build/
|
- ls -lah ./build/
|
||||||
|
|
||||||
- name: semver
|
- name: semver
|
||||||
|
|||||||
2
main.go
2
main.go
@@ -197,7 +197,7 @@ func main() {
|
|||||||
startsAt4 := time.Now().Add(cronAggregateFrequency)
|
startsAt4 := time.Now().Add(cronAggregateFrequency)
|
||||||
if cronAggregateFrequency == time.Hour*24 {
|
if cronAggregateFrequency == time.Hour*24 {
|
||||||
now := time.Now()
|
now := time.Now()
|
||||||
startsAt4 = time.Date(now.Year(), now.Month(), now.Day()+1, 0, 0, 0, 0, now.Location())
|
startsAt4 = time.Date(now.Year(), now.Month(), now.Day()+1, 0, 10, 0, 0, now.Location())
|
||||||
}
|
}
|
||||||
job4, err := c.NewJob(
|
job4, err := c.NewJob(
|
||||||
gocron.DurationJob(cronAggregateFrequency),
|
gocron.DurationJob(cronAggregateFrequency),
|
||||||
|
|||||||
Reference in New Issue
Block a user