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

Expecting pipeline to fail.
This commit is contained in:
Stanislav Nikitin 2022-06-29 00:37:02 +05:00
parent 46aee4d2ab
commit 24644dba93
Signed by: pztrn
GPG Key ID: 1E944A0F0568B550
2 changed files with 9 additions and 9 deletions

View File

@ -5,29 +5,29 @@ name: build
steps:
- name: lint
image: golangci/golangci-lint:v1.43.0
image: code.pztrn.name/containers/mirror/golangci/golangci-lint:v1.46.2
environment:
CGO_ENABLED: 0
commands:
- golangci-lint run
- name: test
image: golang:1.17.3-alpine
image: code.pztrn.name/containers/mirror/golang:1.18.3-alpine
environment:
CGO_ENABLED: 0
commands:
- go test ./...
- name: docker
image: plugins/docker
image: code.pztrn.name/containers/mirror/plugins/docker:20.13.0
when:
branch: ["master"]
settings:
username:
from_secret: dockerhub_user
registry: code.pztrn.name
username: drone
password:
from_secret: dockerhub_password
repo: pztrn/opensaps
from_secret: drone_secret
repo: code.pztrn.name/apps/opensaps
auto_tag: true
depends_on:
- lint

View File

@ -1,11 +1,11 @@
FROM golang:1.13-alpine AS build
FROM code.pztrn.name/containers/mirror/golang:1.18.3-alpine AS build
WORKDIR /go/src/gitlab.com/pztrn/opensaps
COPY . .
RUN go build
FROM alpine:3.10
FROM code.pztrn.name/containers/mirror/alpine:3.16.0
LABEL maintainer "Stanislav N. <pztrn@pztrn.name>"
COPY --from=build /go/src/gitlab.com/pztrn/opensaps/opensaps /app/opensaps