Added make.
continuous-integration/drone/push Build is failing Details

init
shnee 3 years ago
parent 20c0a0afb8
commit bbabd63a7b

@ -11,7 +11,24 @@ steps:
path: /var/run path: /var/run
commands: commands:
- sleep 5 # give docker enough time to start - sleep 5 # give docker enough time to start
- docker build . -t shnee/ansible-fedora - make push-all
- name: gotify
image: fredix/arm64v8-alpine-drone-gotify
settings:
gotifytoken:
from_secret: gotify-token
gotifyendpoint: http://push.shnee.net
gotifytitle: "{{ repo.name }} - Pipeline Build {{ build.number }}"
gotifypriority: 5
message: >
{{#success build.status}}
build {{build.number}} succeeded on {{repo.name}}. Good job {{build.author}} {{build.link}}
{{else}}
build {{build.number}} failed on {{repo.name}}. Fix me please {{build.author}} {{build.link}}
{{/success}}
when:
status: [ success, failure ]
services: services:
- name: docker - name: docker

3
.gitmodules vendored

@ -0,0 +1,3 @@
[submodule "common"]
path = common
url = git@git.shnee.net:shnee/docker-common.git

@ -1,4 +0,0 @@
FROM fedora:latest
# TODO REM add comment.
RUN dnf install -y ansible

@ -0,0 +1,15 @@
FROM {{ base_image_name }}:{{ version }}
# TODO REM add comment.
RUN \
dnf install -y nfs-utils && \
mkdir -p /var/cache/dnf && \
mount \
-t nfs \
-o nolock \
192.168.1.204:/pool1/package-caches/dnf \
/var/cache/dnf && \
echo "keepcache=1" >> /etc/dnf/dnf.conf && \
dnf install -y ansible && \
echo yay
# dnf clean all

@ -0,0 +1,27 @@
default: common/.git build-all
IMAGE_NAME = ansible-fedora
BASE_IMAGE_NAME = fedora
VERSION_LIST = 36 37 latest
common/.git:
git submodule update --init
# TODO REM remove?
# # TODO REM STARTHERE what if we just mafe version targets here that set a
# # 'VERSION' variable?
# latest:
# $(eval VERSION = latest)
#
# # ':' is a bash noop, not sure how other shells will handle it, zsh handles it
# # ok.
# # The ';@:' ensures that 'make: Nothing to be done for '<target>' output for
# # recipes that only have things like 'eval' and 'info'.
# # https://stackoverflow.com/questions/31749487/suppress-make-nothing-to-be-done-for-target
# 36: ;@:
# $(eval VERSION = 36)
-include common/makefiles/common.mk
# TODO REM remove version-list?
.PHONY: version-list latest 36

@ -1,2 +1,4 @@
# anisible-fedora-docker # anisible-fedora-docker
[![Build status](http://drone.shnee.net/api/badges/shnee/ansible-fedora-docker/status.svg?ref=refs/heads/init)](http://drone.shnee.net/shnee/ansible-fedora-docker)

@ -0,0 +1 @@
Subproject commit 5ced3b0bd482c9e31ee99313f0fb50a9587da78d
Loading…
Cancel
Save