4 Commits
1.0.2 ... 1.0.4

Author SHA1 Message Date
9fb8222425 Add peertube 2021-08-08 18:24:17 -05:00
b74b132072 Add category for internal services 2021-08-08 18:23:37 -05:00
879b62eb0b Set up automatic deployment 2021-08-01 15:09:26 -05:00
a1963a10ae Test a new build script to fix cross-architecture tagging 2021-05-01 15:33:07 -05:00
2 changed files with 30 additions and 40 deletions

View File

@@ -10,7 +10,7 @@ variables:
stages: stages:
- build - build
# - test # - test
- push - deploy
services: services:
- docker:dind - docker:dind
before_script: before_script:
@@ -32,48 +32,31 @@ Build:
--platform linux/amd64,linux/arm64 --platform linux/amd64,linux/arm64
--cache-from $CI_HUB_USERNAME/$CI_PROJECT_NAME:latest --cache-from $CI_HUB_USERNAME/$CI_PROJECT_NAME:latest
--tag $CI_HUB_USERNAME/$CI_PROJECT_NAME:$CI_COMMIT_SHORT_SHA --tag $CI_HUB_USERNAME/$CI_PROJECT_NAME:$CI_COMMIT_SHORT_SHA
--tag $CI_HUB_USERNAME/$CI_PROJECT_NAME:bleeding
--push
.
- docker images
Build_Tag:
stage: build
only:
- tags
script:
- docker pull $CI_HUB_USERNAME/$CI_PROJECT_NAME:latest || true
- docker buildx create --use
- >
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_REF_NAME
--tag $CI_HUB_USERNAME/$CI_PROJECT_NAME:latest
--push --push
. .
- docker images - docker images
# TEST # DEPLOY
# TODO: Fix this Deploy:
#Test_HTTP_200: stage: deploy
# 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: only:
- tags - tags
script: trigger: rehashedsalt/ansible
- docker pull $CI_HUB_USERNAME/$CI_PROJECT_NAME:$CI_COMMIT_SHORT_SHA
- >
docker tag
$CI_HUB_USERNAME/$CI_PROJECT_NAME:$CI_COMMIT_SHORT_SHA
$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_Bleeding:
stage: push
script:
- docker pull $CI_HUB_USERNAME/$CI_PROJECT_NAME:$CI_COMMIT_SHORT_SHA
- >
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

View File

@@ -14,6 +14,7 @@
<li><a href="https://git.desu.ltd">Gitea</a> - My personal code forge</li> <li><a href="https://git.desu.ltd">Gitea</a> - My personal code forge</li>
<li><a href="https://nc.desu.ltd">Nextcloud</a> - For storing files and other things</li> <li><a href="https://nc.desu.ltd">Nextcloud</a> - For storing files and other things</li>
<li><a href="https://cowfee.moe">Pleroma</a> - A place to shitpost to strangers</li> <li><a href="https://cowfee.moe">Pleroma</a> - A place to shitpost to strangers</li>
<li><a href="https://tube.cowfee.moe">Peertube</a> - Federated shitpost, video edition</li>
</ul> </ul>
<h1>Docs</h1> <h1>Docs</h1>
<ul> <ul>
@@ -23,6 +24,12 @@
<ul> <ul>
<li><a href="https://www.9iron.club">9iron.club</a> - The place where me and my friends keep docs and cool shit.</li> <li><a href="https://www.9iron.club">9iron.club</a> - The place where me and my friends keep docs and cool shit.</li>
</ul> </ul>
<h1>Internal Shit</h1>
<p>Odds are you won't be able to access any of this. And that's by design; piss off.</p>
<ul>
<li><a href="https://netbox.desu.ltd">Netbox</a> - Source of truth for all the things</li>
<li><a href="https://nagios.desu.ltd">Nagios</a> - The monitoring system I use for desu.ltd</li>
</ul>
</div> </div>
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-footer.php';?> <?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-footer.php';?>
</body> </body>