ajuste no drone
This commit is contained in:
parent
b9a592c29c
commit
e4f2caf219
2 changed files with 3 additions and 6 deletions
|
|
@ -14,8 +14,7 @@ trigger:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build-and-push-backend
|
- name: build-and-push-backend
|
||||||
image: plugins/buildx:latest
|
image: plugins/docker:latest
|
||||||
privileged: true
|
|
||||||
settings:
|
settings:
|
||||||
registry: in.gohorsejobs.com
|
registry: in.gohorsejobs.com
|
||||||
repo: in.gohorsejobs.com/gohorsejobsdev/gohorsejobs-backend
|
repo: in.gohorsejobs.com/gohorsejobsdev/gohorsejobs-backend
|
||||||
|
|
@ -25,8 +24,6 @@ steps:
|
||||||
purge: true
|
purge: true
|
||||||
username: { from_secret: HARBOR_USERNAME }
|
username: { from_secret: HARBOR_USERNAME }
|
||||||
password: { from_secret: HARBOR_PASSWORD }
|
password: { from_secret: HARBOR_PASSWORD }
|
||||||
build_args:
|
|
||||||
- DOCKER_BUILDKIT=1
|
|
||||||
|
|
||||||
- name: build-and-push-backoffice
|
- name: build-and-push-backoffice
|
||||||
image: plugins/docker:latest
|
image: plugins/docker:latest
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,8 @@ RUN apk add --no-cache git ca-certificates tzdata
|
||||||
|
|
||||||
# Cache go modules (separate layer for better caching)
|
# Cache go modules (separate layer for better caching)
|
||||||
COPY go.mod go.sum ./
|
COPY go.mod go.sum ./
|
||||||
RUN --mount=type=cache,target=/go/pkg/mod \
|
#RUN --mount=type=cache,target=/go/pkg/mod \
|
||||||
go mod download && go mod verify
|
# go mod download && go mod verify
|
||||||
|
|
||||||
# Copy source
|
# Copy source
|
||||||
COPY cmd ./cmd
|
COPY cmd ./cmd
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue