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
|
path: /go
|
||||||
commands:
|
commands:
|
||||||
- go mod tidy
|
- go mod tidy
|
||||||
- git status --porcelain
|
- git diff-index HEAD :^package-lock.json
|
||||||
# run Go mod tidy prior to committing
|
# run Go mod tidy prior to committing
|
||||||
- test -z "$(git status --porcelain)"
|
- test -z "$(git diff-index HEAD :^package-lock.json)"
|
||||||
|
|
||||||
- name: frontend
|
- name: frontend
|
||||||
image: docker.io/immawanderer/archlinux-go:linux-amd64
|
image: docker.io/immawanderer/archlinux-go:linux-amd64
|
||||||
depends_on: [go mod tidy]
|
depends_on: [pull]
|
||||||
volumes:
|
volumes:
|
||||||
- name: gopath
|
- name: gopath
|
||||||
path: /go
|
path: /go
|
||||||
@ -106,13 +106,13 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- go mod tidy
|
- go mod tidy
|
||||||
- apk update -q && apk add -q --no-cache git
|
- 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
|
# run Go mod tidy prior to committing
|
||||||
- test -z "$(git status --porcelain)"
|
- test -z "$(git diff-index HEAD :^package-lock.json)"
|
||||||
|
|
||||||
- name: frontend
|
- name: frontend
|
||||||
image: docker.io/library/golang:1.20.3-alpine3.17
|
image: docker.io/library/golang:1.20.3-alpine3.17
|
||||||
depends_on: [go mod tidy]
|
depends_on: [pull]
|
||||||
volumes:
|
volumes:
|
||||||
- name: gopath
|
- name: gopath
|
||||||
path: /go
|
path: /go
|
||||||
|
Loading…
Reference in New Issue
Block a user