ci: make frontend depend on pull
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
* change git status checking method to git diff-index
This commit is contained in:
parent
1f427abbbe
commit
18adb45692
12
.drone.yml
12
.drone.yml
@ -34,13 +34,13 @@ steps:
|
||||
path: /go
|
||||
commands:
|
||||
- go mod tidy
|
||||
- git status --porcelain
|
||||
- git diff-index HEAD :^package-lock.json
|
||||
# run Go mod tidy prior to committing
|
||||
- test -z "$(git status --porcelain)"
|
||||
- test -z "$(git diff-index HEAD :^package-lock.json)"
|
||||
|
||||
- name: frontend
|
||||
image: docker.io/immawanderer/archlinux-go:linux-amd64
|
||||
depends_on: [go mod tidy]
|
||||
depends_on: [pull]
|
||||
volumes:
|
||||
- name: gopath
|
||||
path: /go
|
||||
@ -106,13 +106,13 @@ steps:
|
||||
commands:
|
||||
- go mod tidy
|
||||
- apk update -q && apk add -q --no-cache git
|
||||
- git status --porcelain
|
||||
- git diff-index HEAD :^package-lock.json
|
||||
# run Go mod tidy prior to committing
|
||||
- test -z "$(git status --porcelain)"
|
||||
- test -z "$(git diff-index HEAD :^package-lock.json)"
|
||||
|
||||
- name: frontend
|
||||
image: docker.io/library/golang:1.20.3-alpine3.17
|
||||
depends_on: [go mod tidy]
|
||||
depends_on: [pull]
|
||||
volumes:
|
||||
- name: gopath
|
||||
path: /go
|
||||
|
Loading…
Reference in New Issue
Block a user