first commit
This commit is contained in:
commit
d94ce94667
2 changed files with 67 additions and 0 deletions
42
.drone.yml
Normal file
42
.drone.yml
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default
|
||||||
|
steps:
|
||||||
|
- name: run gitleaks
|
||||||
|
image: plugins/gitleaks
|
||||||
|
settings:
|
||||||
|
path: .
|
||||||
|
# https://github.com/hadolint/hadolint/blob/master/docs/INTEGRATION.md
|
||||||
|
- name: hadolint
|
||||||
|
image: hadolint/hadolint:latest-debian
|
||||||
|
# image: ghcr.io/hadolint/hadolint:latest-debian
|
||||||
|
commands:
|
||||||
|
- hadolint --version
|
||||||
|
- hadolint Dockerfile
|
||||||
|
- name: docker_build_and_push
|
||||||
|
image: plugins/docker
|
||||||
|
environment:
|
||||||
|
http_proxy: http://acng.grote.lan:9999
|
||||||
|
settings:
|
||||||
|
# Dockerhub-Username
|
||||||
|
username: quotengrote
|
||||||
|
# Dockerhub-Password
|
||||||
|
# als Org-Secret hinterlegt
|
||||||
|
password:
|
||||||
|
from_secret: DOCKERHUB_PASS
|
||||||
|
# Container-Registry
|
||||||
|
# registry: hub.docker.com
|
||||||
|
# Name des Containerfiles
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
# Repo auf dem Dockerhub
|
||||||
|
repo: quotengrote/allzweckcontainer
|
||||||
|
tags:
|
||||||
|
- latest
|
||||||
|
- ${DRONE_COMMIT_SHA:0:8}
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
event:
|
||||||
|
include:
|
||||||
|
- push
|
25
Dockerfile
Normal file
25
Dockerfile
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
############################################################
|
||||||
|
# Dockerfile to build fpm-build images
|
||||||
|
# fpm can be used to build .rpm or .deb packages
|
||||||
|
# Based on Debian
|
||||||
|
# See: https://fpm.readthedocs.io
|
||||||
|
############################################################
|
||||||
|
FROM ubuntu:focal
|
||||||
|
|
||||||
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
ENV http_proxy=http://acng.grote.lan:9999
|
||||||
|
|
||||||
|
# hadolint ignore=DL3008,DL3028
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get -y --no-install-recommends install \
|
||||||
|
build-essential \
|
||||||
|
git \
|
||||||
|
wget \
|
||||||
|
rpm \
|
||||||
|
rsync \
|
||||||
|
openssh-client \
|
||||||
|
git \
|
||||||
|
&& apt-get clean && \
|
||||||
|
gem install --no-ri --no-rdoc fpm && \
|
||||||
|
apt-get clean && \
|
||||||
|
rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/*
|
Loading…
Reference in a new issue