Compare commits
10 Commits
352b088c97
...
7827745c11
Author | SHA1 | Date | |
---|---|---|---|
7827745c11 | |||
0a1f221b40 | |||
b0b2a3e950 | |||
980f487f4b | |||
df4c0a12fa | |||
99bac4e6e1 | |||
7de41c8bfd | |||
6ad30d3826 | |||
a7d09be523 | |||
f86c841167 |
13
.gitea/workflows/simple-docker-test.yml
Normal file
13
.gitea/workflows/simple-docker-test.yml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
name: Simple Docker Hello World Test
|
||||||
|
run-name: Tester workflow
|
||||||
|
on:
|
||||||
|
- push
|
||||||
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
hello-world:
|
||||||
|
runs-on: gitea-main
|
||||||
|
container:
|
||||||
|
image: alpine
|
||||||
|
steps:
|
||||||
|
- run: echo "Target branch ${{ gitea.ref }}"
|
@ -1,11 +1,19 @@
|
|||||||
stages:
|
include:
|
||||||
- build
|
- local: 'ci/builder.yml'
|
||||||
|
|
||||||
dummy:
|
build-ansible-image:
|
||||||
stage: build
|
extends: .builder
|
||||||
image: alpine:latest
|
|
||||||
script:
|
script:
|
||||||
- echo $env_var
|
- sh build-image.sh ansible
|
||||||
- echo $env_file
|
|
||||||
- cat $env_file
|
build-website-image:
|
||||||
|
extends: .builder
|
||||||
|
script:
|
||||||
|
- sh build-image.sh website
|
||||||
|
|
||||||
|
|
||||||
|
build-selelium-image:
|
||||||
|
extends: .builder
|
||||||
|
script:
|
||||||
|
- sh build-image.sh selenium
|
||||||
|
|
||||||
|
35
build-image.sh
Normal file
35
build-image.sh
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# This script is a generic builder script which only builds
|
||||||
|
# images if the latest commit modifies the given folder in some way
|
||||||
|
|
||||||
|
target="$1"
|
||||||
|
tag="$2"
|
||||||
|
|
||||||
|
# Ensure we have a target
|
||||||
|
if [ -z "$target" ]; then
|
||||||
|
echo "$target is not defined ( empty )"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Make sure the target is real
|
||||||
|
if [ ! -d "$target" ]; then
|
||||||
|
echo "$target is not a directory"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Set the tag if not already set
|
||||||
|
if [ -z "$tag" ]; then
|
||||||
|
tag=latest
|
||||||
|
echo "Tag for \"$target\" defaulting to \"latest\""
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Finally set the project root
|
||||||
|
PROJECT_ROOT=`pwd`
|
||||||
|
|
||||||
|
cd "$target"
|
||||||
|
echo docker build . -t "$tag"
|
||||||
|
echo "${DOCKERHUB_PASSWORD} | docker login --username "${DOCKERHUB_USERNAME}" --password-stdin
|
||||||
|
cd "$PROJECT_ROOT"
|
17
ci/builder.yml
Normal file
17
ci/builder.yml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# This template is for the main builder jobs to inherit generic properties from
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- publish
|
||||||
|
|
||||||
|
.builder:
|
||||||
|
image: docker:stable
|
||||||
|
stage: publish
|
||||||
|
services:
|
||||||
|
- docker:dind
|
||||||
|
only:
|
||||||
|
refs:
|
||||||
|
- master
|
||||||
|
# Ensure we login to docker hub before hand everytime
|
||||||
|
before_script:
|
||||||
|
- echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
|
||||||
|
|
@ -3,12 +3,19 @@
|
|||||||
This repository serves as a place of consolidation for most of the major public
|
This repository serves as a place of consolidation for most of the major public
|
||||||
docker images that I maintain.
|
docker images that I maintain.
|
||||||
|
|
||||||
|
# Building
|
||||||
|
|
||||||
|
Workflow for is defined as such in 3 stages:
|
||||||
|
|
||||||
|
* Validation stage: where we lint and check any
|
||||||
|
|
||||||
|
|
||||||
# Update Cycle
|
# Update Cycle
|
||||||
|
|
||||||
I mostly update these for my own sake however special versioning cycles can be
|
I mostly update these for my own sake however special versioning cycles can be
|
||||||
arranged for those that that request it.
|
arranged for those that that request it.
|
||||||
|
|
||||||
Email: `dev@shockrah.xyz`
|
Email: `mail@shockrah.xyz`
|
||||||
|
|
||||||
|
|
||||||
# Contributing
|
# Contributing
|
||||||
|
6
selenium/Dockerfile
Normal file
6
selenium/Dockerfile
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
FROM selenium/standalone-firefox
|
||||||
|
|
||||||
|
RUN sudo apt update && \
|
||||||
|
sudo apt install -y python3-pip python3-venv && \
|
||||||
|
sudo apt-get clean && sudo rm -rf /var/cache/apt/archives /var/lib/apt/lists
|
||||||
|
|
@ -1,9 +1,6 @@
|
|||||||
FROM debian:sid-slim
|
FROM debian:sid-slim
|
||||||
MAINTAINER Alejandro Santillana alejandros714@protonmail.com
|
|
||||||
|
|
||||||
# For building and deploying to the VPS's and neocities
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y pandoc hugo curl --no-install-recommends && \
|
apt-get install -y --no-install-recommends hugo && \
|
||||||
rm -rf var/lib/{apt,dpkg,cache,log}/
|
rm -rf var/lib/{apt,dpkg,cache,log}/
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user