From 9d5d5c262ee8ef331742fb023676121a7a69d9c7 Mon Sep 17 00:00:00 2001 From: "Stanislav N. aka pztrn" Date: Wed, 29 Jun 2022 00:41:56 +0500 Subject: [PATCH] Update Drone configuration and Dockerfile to use mirrorred images. Expect pipeline to fail. --- .drone.yml | 14 +++++++------- Dockerfile | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.drone.yml b/.drone.yml index 7e2cf76..295afe0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,27 +5,27 @@ 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/metricator + from_secret: drone_secret + repo: code.pztrn.name/apps/metricator auto_tag: true diff --git a/Dockerfile b/Dockerfile index ecc0342..57fec52 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 COPY . . @@ -13,7 +13,7 @@ RUN apk add bash git make RUN make metricatord-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. " COPY --from=build /go/src/gitlab.pztrn.name/pztrn/metricator/._bin/metricatord /usr/local/bin/metricatord