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
				
			This commit is contained in:
		
							
								
								
									
										14
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								.drone.yml
									
									
									
									
									
								
							| @@ -5,20 +5,20 @@ 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: docker | ||||
|     image: plugins/docker | ||||
|     image: code.pztrn.name/containers/mirror/plugins/docker:20.13.0 | ||||
|     when: | ||||
|       branch: master | ||||
|       branch: ["master"] | ||||
|     settings: | ||||
|       username: | ||||
|         from_secret: dockerhub_user | ||||
|       registry: code.pztrn.name | ||||
|       username: drone | ||||
|       password: | ||||
|         from_secret: dockerhub_password | ||||
|       repo: pztrn/periodicator | ||||
|         from_secret: drone_secret | ||||
|       repo: code.pztrn.name/apps/periodicator | ||||
|       auto_tag: true | ||||
|   | ||||
| @@ -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 | ||||
| COPY . . | ||||
| @@ -6,7 +6,7 @@ COPY . . | ||||
| ENV CGO_ENABLED=0 | ||||
| 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>" | ||||
|  | ||||
| COPY --from=build /go/src/go.dev.pztrn.name/periodicator/periodicator /usr/local/bin/periodicator | ||||
|   | ||||
		Reference in New Issue
	
	Block a user