+18
-1
@@ -11,7 +11,24 @@ steps:
|
||||
path: /var/run
|
||||
commands:
|
||||
- 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:
|
||||
- name: docker
|
||||
|
||||
@@ -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
|
||||
|
||||
[](http://drone.shnee.net/shnee/ansible-fedora-docker)
|
||||
|
||||
|
||||
Submodule
+1
Submodule common added at 5ced3b0bd4
Reference in New Issue
Block a user