Compare commits

..

No commits in common. "03f9ca9ddff27ba62c6d5a4deb10a740dfe53c44" and "9271ee2cc2c07814d29bc89ac371b7f45628a765" have entirely different histories.

3 changed files with 0 additions and 96 deletions

View File

@ -1,79 +0,0 @@
#
# This guy is awesome: https://dev.to/bzinoun/gitlab-ci-to-build-and-push-containers-to-registry-538a
#
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
before_script:
- echo -n "$CI_LOGIN_PASSWORD" | docker login -u "$CI_LOGIN_USERNAME" --password-stdin
- docker version
- docker info
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 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 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:
- tags
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:$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

@ -1,3 +0,0 @@
FROM php:7-apache
COPY ./ /var/www/html/
EXPOSE 80

View File

@ -1,14 +0,0 @@
⣿⣿⣿⣿⢋⢐⢔⣴⣬⣕⣔⣌⣬⣩⡹⣛⣛⢻⠿⠿⠿⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⡿⠇⢔⢡⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣽⣿⣟⣷⣶⢧⣮⣍⣝⢻⢿⣿
⣿⠟⡑⢅⠕⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⠟⢻⣿⣶⠊
⡏⢌⢌⠢⡡⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡀⢸⣿⡇⠄
⠨⡂⠆⠕⢌⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢿⠧⠾⢛⣭⣴
⠨⡂⠕⢅⠕⡸⣿⣿⣿⣿⣿⣿⣿⡿⡿⠿⢟⢛⠫⡋⢅⠕⡐⠔⡰⣿⣿⣿⣿
⡑⢌⠪⡐⢬⢢⢩⢙⢍⠍⢕⢑⠰⡈⡢⡑⢅⠢⡑⢌⠢⡑⢌⢊⠆⣹⣿⣿⣿
⡨⢂⠕⡨⢂⢅⢃⠇⢧⢹⡸⡸⣘⣒⢲⢸⢰⢱⢸⢰⢱⡘⡜⡔⣹⣿⣿⣿⣿
⣿⣶⣕⡨⢂⠆⢕⠨⡂⢆⠪⡘⢌⢊⠪⡊⡚⠜⡊⡪⢊⠜⡨⢐⣿⣿⣿⣿⣿
⠉⠛⠿⢿⣷⣷⣥⣎⣔⡡⡊⢌⠢⢡⢑⠌⡌⢌⠢⡊⢔⣡⠂⠈⠉⠿⣿⣿⣿
⠄⠄⠄⠄⠈⠉⠛⠿⣿⠉⠄⠄⠄⢀⠄⠄⠄⠄⠄⠄⠄⠙⠄⠄⠄⠄⠐⠹⣿
⣿⣿⣿⣿⠛⠻⢿⣿⡿⠿⠿⢿⣿⡿⠿⠿⢿⣿⡟⠛⠿⣿⣿⡿⠻⣿⣿⣿⣿
⣿⣿⣿⣿⢈⡁⢸⣿⡇⢰⡆⢸⣿⡇⢰⡆⢸⣿⡇⣉⠄⣿⡿⠁⠃⠹⣿⣿⣿
⣿⣿⣿⣿⣤⣤⣼⣿⣧⣤⣤⣼⣿⣧⣤⣤⣼⣿⣧⣤⣤⣿⣧⣼⣿⣤⣿⣿⣿