39 Commits
Author SHA1 Message Date
shnee 9639033f20 Pipeline debug
continuous-integration/drone/push Build is passing
2023-03-24 15:49:42 -04:00
shnee b0362c78df debug
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is failing
2023-02-10 17:58:01 -05:00
shnee 4ab06a04de debug
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is failing
2023-02-07 16:43:28 -05:00
shnee 462dda85ca debug
continuous-integration/drone/push Build is failing
2023-02-07 11:17:19 -05:00
shnee 0bf9981adc debug
continuous-integration/drone/push Build is failing
2023-02-07 09:46:56 -05:00
shnee e8b0d0807e debug
continuous-integration/drone/push Build is failing
2023-02-07 08:58:22 -05:00
shnee e80f32ed0c debug
continuous-integration/drone/push Build is failing
2023-02-06 18:17:44 -05:00
shnee bbd6882746 debug
continuous-integration/drone/push Build is failing
2023-02-06 16:09:28 -05:00
shnee 4cfff045be debug
continuous-integration/drone/push Build is failing
2023-02-06 14:09:08 -05:00
shnee edebb9340f debug 2023-02-06 14:04:59 -05:00
shnee 6df76e0b21 debug
continuous-integration/drone/push Build is failing
2023-02-06 12:25:40 -05:00
shnee 522ab96803 debug
continuous-integration/drone/push Build is passing
2023-01-31 09:43:36 -05:00
shnee 22bf9b42d8 debug
continuous-integration/drone/push Build is failing
2023-01-31 09:41:40 -05:00
shnee e032d03405 debug
continuous-integration/drone/push Build is failing
2023-01-31 08:58:17 -05:00
shnee 16b54c7211 debug
continuous-integration/drone/push Build is failing
2023-01-31 08:37:08 -05:00
shnee a0edb9d5c5 debug
continuous-integration/drone/push Build is failing
2023-01-30 21:33:23 -05:00
shnee 1ad70fe02f debug
continuous-integration/drone/push Build is failing
2023-01-30 21:24:02 -05:00
shnee 790f6b2a0b debug
continuous-integration/drone/push Build is failing
2023-01-30 21:19:33 -05:00
shnee c26bc14ee8 debug
continuous-integration/drone/push Build is failing
2023-01-30 20:48:51 -05:00
shnee 5bfe4f0499 debug
continuous-integration/drone/push Build is failing
2023-01-30 20:45:57 -05:00
shnee 3d684e64f1 debug
continuous-integration/drone/push Build is failing
2023-01-30 20:15:00 -05:00
shnee ffc269e83c debug
continuous-integration/drone/push Build is failing
2023-01-30 19:54:10 -05:00
shnee 3d25167cea debug
continuous-integration/drone/push Build is failing
2023-01-30 16:45:54 -05:00
shnee c91fc2cf7f Added Update to Submodule
continuous-integration/drone/push Build is failing
2023-01-30 16:42:50 -05:00
shnee 152ed93ac0 Keep Messing With SSH Config
continuous-integration/drone/push Build is failing
2023-01-30 16:23:16 -05:00
shnee 7c412e9f24 Added SSH Config With Port Number
continuous-integration/drone/push Build is failing
2023-01-30 16:14:29 -05:00
shnee 250ebe7a27 Don't Suppress ssh-keyscan Errors
continuous-integration/drone/push Build is failing
2023-01-30 16:06:08 -05:00
shnee 3f948863cd Make Sure '.ssh' Folder Exists
continuous-integration/drone/push Build is failing
2023-01-30 16:03:52 -05:00
shnee b68011c44c Make Sure To Start Agent
continuous-integration/drone/push Build is failing
2023-01-30 16:00:58 -05:00
shnee 999b0f34e1 Attempt to Add SSH Key
continuous-integration/drone/push Build is failing
2023-01-30 15:57:20 -05:00
shnee 109ecebbd2 Attempt to Make Drone Always Pull Images Take 2
continuous-integration/drone/push Build is failing
2023-01-30 15:30:40 -05:00
shnee 44426382bd Attempt to Make Drone Always Pull Images Take 2 2023-01-30 15:27:10 -05:00
shnee ab24bcca7b Attempt to Make Drone Always Pull Images
continuous-integration/drone/push Build is failing
2023-01-30 15:24:32 -05:00
shnee 98ed71f3d9 Clone Submodules in Pipeline
continuous-integration/drone/push Build is failing
2023-01-30 15:16:43 -05:00
shnee 70389eb087 Fixd dind Image Name in Pipeline
continuous-integration/drone/push Build is failing
2023-01-30 15:14:17 -05:00
shnee 920af3851e Added image_pull_secrets
continuous-integration/drone/push Build encountered an error
2023-01-30 15:10:42 -05:00
shnee 5327a413c2 Use In-House dind Image
continuous-integration/drone/push Build encountered an error
2023-01-30 15:00:22 -05:00
shnee bbabd63a7b Added make.
continuous-integration/drone/push Build is failing
2023-01-30 14:45:02 -05:00
shnee 20c0a0afb8 init commit
continuous-integration/drone Build is passing
2022-05-25 16:02:29 -04:00
9 changed files with 148 additions and 0 deletions
+87
View File
@@ -0,0 +1,87 @@
---
kind: pipeline
type: docker
name: docker-build
steps:
- name: submodules
image: alpine/git
environment:
SSH_KEY:
from_secret: ssh-key
commands:
- mkdir -p ~/.ssh
- printf "Host git.shnee.net\n Port 222\n" >> ~/.ssh/config
- eval $(ssh-agent -s)
- echo "$SSH_KEY" | ssh-add -
- ssh-keyscan -p 222 -H git.shnee.net > ~/.ssh/known_hosts 2> /dev/null
- git submodule update --init --recursive
- name: build
image: docker.shnee.net/shnee/dind:23.0.1
pull: always
volumes:
- name: dockersock
path: /var/run
- name: docker-client-config
path: /root/.docker
# - name: fedora-pkg-cache
# path: /var/cache/dnf
environment:
DOCKER_CONFIG: /etc/docker/client_config
DOCKER_CLIENT_CONFIG:
from_secret: dockerconfig
commands:
# Give docker enough time to start.
- sleep 15
- mkdir -p "$DOCKER_CONFIG"
- echo "$DOCKER_CLIENT_CONFIG" | tee "$DOCKER_CONFIG/config.json"
- make no-cache build-all
- make push-all
- name: gotify
image: fredix/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
image: docker.shnee.net/shnee/dind:23.0.1
privileged: true
volumes:
- name: dockersock
path: /var/run
- name: docker-client-config
path: /root/.docker
volumes:
- name: dockersock
temp: {}
- name: docker-client-config
temp: {}
# TODO This isnt working and this path would only work while running locally.
# - name: fedora-pkg-cache
# host:
# path: /home/shnee/dev/ansible-fedora-docker/dnfcache
clone:
depth: 50
image_pull_secrets:
- dockerconfig
+3
View File
@@ -0,0 +1,3 @@
[submodule "common"]
path = common
url = git@git.shnee.net:shnee/docker-common.git
+7
View File
@@ -0,0 +1,7 @@
FROM fedora:36
# Install ansible using dnf. We originally were going to have a flag for whether
# to use dnf or pip to install ansible however it looks like dnf installs all
# the python libs in the same location that pip would, therefore there doesn't
# seem to be a meaningful difference between the 2 install options.
RUN dnf install -y ansible
+7
View File
@@ -0,0 +1,7 @@
FROM fedora:37
# Install ansible using dnf. We originally were going to have a flag for whether
# to use dnf or pip to install ansible however it looks like dnf installs all
# the python libs in the same location that pip would, therefore there doesn't
# seem to be a meaningful difference between the 2 install options.
RUN dnf install -y ansible
+7
View File
@@ -0,0 +1,7 @@
FROM {{ base_image_name }}:{{ version }}
# Install ansible using dnf. We originally were going to have a flag for whether
# to use dnf or pip to install ansible however it looks like dnf installs all
# the python libs in the same location that pip would, therefore there doesn't
# seem to be a meaningful difference between the 2 install options.
RUN dnf install -y ansible
+7
View File
@@ -0,0 +1,7 @@
FROM fedora:latest
# Install ansible using dnf. We originally were going to have a flag for whether
# to use dnf or pip to install ansible however it looks like dnf installs all
# the python libs in the same location that pip would, therefore there doesn't
# seem to be a meaningful difference between the 2 install options.
RUN dnf install -y ansible
+27
View File
@@ -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
+2
View File
@@ -1,2 +1,4 @@
# 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)
Submodule
+1
Submodule common added at 468f93cbe6