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:
|
||||
- name: build-and-push-backend
|
||||
image: plugins/buildx:latest
|
||||
privileged: true
|
||||
image: plugins/docker:latest
|
||||
settings:
|
||||
registry: in.gohorsejobs.com
|
||||
repo: in.gohorsejobs.com/gohorsejobsdev/gohorsejobs-backend
|
||||
|
|
@ -25,8 +24,6 @@ steps:
|
|||
purge: true
|
||||
username: { from_secret: HARBOR_USERNAME }
|
||||
password: { from_secret: HARBOR_PASSWORD }
|
||||
build_args:
|
||||
- DOCKER_BUILDKIT=1
|
||||
|
||||
- name: build-and-push-backoffice
|
||||
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)
|
||||
COPY go.mod go.sum ./
|
||||
RUN --mount=type=cache,target=/go/pkg/mod \
|
||||
go mod download && go mod verify
|
||||
#RUN --mount=type=cache,target=/go/pkg/mod \
|
||||
# go mod download && go mod verify
|
||||
|
||||
# Copy source
|
||||
COPY cmd ./cmd
|
||||
|
|
|
|||
Loading…
Reference in a new issue