Update Drone configuration and Dockerfile to use mirrorred images.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
Expect pipeline to fail.
This commit is contained in:
parent
26ce90bb84
commit
9d5d5c262e
14
.drone.yml
14
.drone.yml
@ -5,27 +5,27 @@ name: build
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: lint
|
- name: lint
|
||||||
image: golangci/golangci-lint:v1.43.0
|
image: code.pztrn.name/containers/mirror/golangci/golangci-lint:v1.46.2
|
||||||
environment:
|
environment:
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
commands:
|
commands:
|
||||||
- golangci-lint run
|
- golangci-lint run
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
image: golang:1.17.3-alpine
|
image: code.pztrn.name/containers/mirror/golang:1.18.3-alpine
|
||||||
environment:
|
environment:
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
commands:
|
commands:
|
||||||
- go test ./...
|
- go test ./...
|
||||||
|
|
||||||
- name: docker
|
- name: docker
|
||||||
image: plugins/docker
|
image: code.pztrn.name/containers/mirror/plugins/docker:20.13.0
|
||||||
when:
|
when:
|
||||||
branch: ["master"]
|
branch: ["master"]
|
||||||
settings:
|
settings:
|
||||||
username:
|
registry: code.pztrn.name
|
||||||
from_secret: dockerhub_user
|
username: drone
|
||||||
password:
|
password:
|
||||||
from_secret: dockerhub_password
|
from_secret: drone_secret
|
||||||
repo: pztrn/metricator
|
repo: code.pztrn.name/apps/metricator
|
||||||
auto_tag: true
|
auto_tag: true
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM registry.gitlab.pztrn.name/containers/mirror/golang:1.15.5-alpine AS build
|
FROM code.pztrn.name/containers/mirror/golang:1.18.3-alpine AS build
|
||||||
|
|
||||||
WORKDIR /go/src/gitlab.pztrn.name/pztrn/metricator
|
WORKDIR /go/src/gitlab.pztrn.name/pztrn/metricator
|
||||||
COPY . .
|
COPY . .
|
||||||
@ -13,7 +13,7 @@ RUN apk add bash git make
|
|||||||
RUN make metricatord-build
|
RUN make metricatord-build
|
||||||
RUN make metricator-client-build
|
RUN make metricator-client-build
|
||||||
|
|
||||||
FROM registry.gitlab.pztrn.name/containers/mirror/golang:1.15.5-alpine
|
FROM code.pztrn.name/containers/mirror/golang:1.18.3-alpine
|
||||||
LABEL maintainer="Stanislav N. <pztrn@pztrn.name>"
|
LABEL maintainer="Stanislav N. <pztrn@pztrn.name>"
|
||||||
|
|
||||||
COPY --from=build /go/src/gitlab.pztrn.name/pztrn/metricator/._bin/metricatord /usr/local/bin/metricatord
|
COPY --from=build /go/src/gitlab.pztrn.name/pztrn/metricator/._bin/metricatord /usr/local/bin/metricatord
|
||||||
|
Loading…
x
Reference in New Issue
Block a user