Compare commits
20 Commits
6a633ec2eb
...
1.0.1
Author | SHA1 | Date | |
---|---|---|---|
4bfa632dff | |||
0c30da7e6d | |||
2fcf3ad3a2 | |||
930c550385 | |||
ea31268ef5 | |||
c1b575f5a9 | |||
ad67e1831b | |||
7330851694 | |||
62829cecad | |||
afa3886de5 | |||
d066bed021 | |||
1cf9089e33 | |||
9aeb4b44b4 | |||
f3f6fd7be5 | |||
138fa27962 | |||
234992141c | |||
89d9610ba8 | |||
73cad693a1 | |||
acc4e3f324 | |||
7b5af1e979 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1 @@
|
||||
*.swp
|
||||
/files
|
||||
|
@@ -2,13 +2,14 @@
|
||||
# This guy is awesome: https://dev.to/bzinoun/gitlab-ci-to-build-and-push-containers-to-registry-538a
|
||||
#
|
||||
|
||||
image: docker:latest
|
||||
image: morlay/buildx:607a2ce
|
||||
variables:
|
||||
# DinD's vfs driver is pretty intensive; this is less so
|
||||
DOCKER_DRIVER: overlay2
|
||||
CI_HUB_USERNAME: rehashedsalt
|
||||
stages:
|
||||
- build
|
||||
# - test
|
||||
- push
|
||||
services:
|
||||
- docker:dind
|
||||
@@ -19,18 +20,36 @@ before_script:
|
||||
after_script:
|
||||
- docker logout hub.docker.com
|
||||
|
||||
# BUILD
|
||||
Build:
|
||||
stage: build
|
||||
script:
|
||||
- docker pull $CI_HUB_USERNAME/$CI_PROJECT_NAME:latest || true
|
||||
- docker buildx create --use
|
||||
- >
|
||||
docker build
|
||||
docker buildx build
|
||||
--pull
|
||||
--platform linux/amd64,linux/arm64
|
||||
--cache-from $CI_HUB_USERNAME/$CI_PROJECT_NAME:latest
|
||||
--tag $CI_HUB_USERNAME/$CI_PROJECT_NAME:$CI_COMMIT_SHORT_SHA
|
||||
--push
|
||||
.
|
||||
- docker push $CI_HUB_USERNAME/$CI_PROJECT_NAME:$CI_COMMIT_SHORT_SHA
|
||||
- docker images
|
||||
|
||||
# TEST
|
||||
# TODO: Fix this
|
||||
#Test_HTTP_200:
|
||||
# stage: test
|
||||
# script:
|
||||
# - apk add curl
|
||||
# - docker run -d -p 8889:80 $CI_HUB_USERNAME/$CI_PROJECT_NAME:$CI_COMMIT_SHORT_SHA
|
||||
# - sleep 10
|
||||
# - docker ps
|
||||
# - netstat -tulpn
|
||||
# - curl localhost:8889 | grep -ie '200 OK'
|
||||
# - docker kill $(docker ps -q)
|
||||
|
||||
# PUSH
|
||||
Push_When_Tag:
|
||||
stage: push
|
||||
only:
|
||||
@@ -41,14 +60,14 @@ Push_When_Tag:
|
||||
docker tag
|
||||
$CI_HUB_USERNAME/$CI_PROJECT_NAME:$CI_COMMIT_SHORT_SHA
|
||||
$CI_HUB_USERNAME/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME
|
||||
- docker push $CI_HUB_USERNAME/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME
|
||||
- >
|
||||
docker tag
|
||||
$CI_HUB_USERNAME/$CI_PROJECT_NAME:$CI_COMMIT_SHORT_SHA
|
||||
$CI_HUB_USERNAME/$CI_PROJECT_NAME:latest
|
||||
- docker images
|
||||
- docker push $CI_HUB_USERNAME/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME
|
||||
- docker push $CI_HUB_USERNAME/$CI_PROJECT_NAME:latest
|
||||
|
||||
Push_Latest:
|
||||
Push_Bleeding:
|
||||
stage: push
|
||||
script:
|
||||
- docker pull $CI_HUB_USERNAME/$CI_PROJECT_NAME:$CI_COMMIT_SHORT_SHA
|
||||
@@ -56,4 +75,5 @@ Push_Latest:
|
||||
docker tag
|
||||
$CI_HUB_USERNAME/$CI_PROJECT_NAME:$CI_COMMIT_SHORT_SHA
|
||||
$CI_HUB_USERNAME/$CI_PROJECT_NAME:bleeding
|
||||
- docker images
|
||||
- docker push $CI_HUB_USERNAME/$CI_PROJECT_NAME:bleeding
|
||||
|
10
README.md
10
README.md
@@ -6,7 +6,15 @@ A website for me and my friends.
|
||||
|
||||
This repo is a ready-to-go webroot. `git clone` and configure Apache. `git pull` for updates.
|
||||
|
||||
You may also use the Docker image at `rehashedsalt/9iron:latest`
|
||||
## Docker
|
||||
|
||||
You can pull the image from `rehashedsalt/9iron`. The `:latest` tag will always have the latest git tag applied and the `:bleeding` tag will always be the latest *commit*.
|
||||
|
||||
The following directories contain stateful content that you will be interested in keeping in a PV:
|
||||
|
||||
* `/var/www/html/files`
|
||||
|
||||
The image listens on `:80` and does not terminate SSL; proxy connections if you're interested in that.
|
||||
|
||||
## Random Subtitles
|
||||
|
||||
|
10
deploy.sh
10
deploy.sh
@@ -1,10 +0,0 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
# post-deploy.sh
|
||||
# Copyright (C) 2020 Vintage Salt <rehashedsalt@cock.li>
|
||||
#
|
||||
# Distributed under terms of the MIT license.
|
||||
#
|
||||
|
||||
ssh -t salt@www.9iron.club sudo git -C /var/www/www.9iron.club pull
|
||||
|
0
files/.keep
Normal file
0
files/.keep
Normal file
1
minecraft/packs/current
Symbolic link
1
minecraft/packs/current
Symbolic link
@@ -0,0 +1 @@
|
||||
null
|
@@ -124,8 +124,12 @@
|
||||
// - Brett
|
||||
"\"Be grody on my back. Wait-\"",
|
||||
// - Brett
|
||||
"\"Let's get this cock onto a tray!\"",
|
||||
// - Brett
|
||||
"\"This is Hell, they are all prostitutes.\"",
|
||||
// - Jordyn
|
||||
"\"Isn't an asshole like a brass instrument?\"",
|
||||
// - Jordyn
|
||||
"\"Sir, this is an M32 grenade launcher\"",
|
||||
// - Jacob https://www.youtube.com/watch?v=DJRkFLFnv3c
|
||||
"\"OHNO!\"",
|
||||
|
Reference in New Issue
Block a user