Update Drone configuration and Dockerfile to use mirrorred images.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Stanislav Nikitin 2022-06-29 00:32:36 +05:00
parent 3053c62fa8
commit 14581dbe83
Signed by: pztrn
GPG Key ID: 1E944A0F0568B550
2 changed files with 9 additions and 9 deletions

View File

@ -5,20 +5,20 @@ 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: 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/periodicator repo: code.pztrn.name/apps/periodicator
auto_tag: true auto_tag: true

View File

@ -1,4 +1,4 @@
FROM golang:1.17.1-alpine AS build FROM code.pztrn.name/containers/mirror/golang:1.18.3-alpine AS build
WORKDIR /go/src/go.dev.pztrn.name/periodicator WORKDIR /go/src/go.dev.pztrn.name/periodicator
COPY . . COPY . .
@ -6,7 +6,7 @@ COPY . .
ENV CGO_ENABLED=0 ENV CGO_ENABLED=0
RUN apk add make && make build RUN apk add make && make build
FROM alpine:latest FROM code.pztrn.name/containers/mirror/alpine:3.16.0
LABEL maintainer="Stanislav N. <pztrn@pztrn.name>" LABEL maintainer="Stanislav N. <pztrn@pztrn.name>"
COPY --from=build /go/src/go.dev.pztrn.name/periodicator/periodicator /usr/local/bin/periodicator COPY --from=build /go/src/go.dev.pztrn.name/periodicator/periodicator /usr/local/bin/periodicator