Compare commits

...

4 Commits

Author SHA1 Message Date
622fe23699 try to add ueberauth 2021-01-12 13:06:24 +01:00
f4736a0a0b fix Makefile 2021-01-12 11:41:19 +01:00
cf20e41b82 Update pleroma/Makefile 2021-01-12 10:34:19 +00:00
7780dcce69 add pleroma 2021-01-12 10:24:48 +00:00
3 changed files with 34 additions and 0 deletions

View File

@ -117,6 +117,17 @@ restic:
variables:
- $CI_COMMIT_REF_PROTECTED == "true"
pleroma:
stage: build
tags:
- docker
script:
- cd pleroma
- make push
only:
variables:
- $CI_COMMIT_REF_PROTECTED == "true"
.docker_init: &docker_init |
if ! docker info &>/dev/null; then
if [ -z "${DOCKER_HOST}" -a "${KUBERNETES_PORT}" ]; then

22
pleroma/Makefile Normal file
View File

@ -0,0 +1,22 @@
NAMESPACE=alemairebe
include version
IMAGE=pleroma
push: get decompress ueberauth build
get:
wget https://git.pleroma.social/pleroma/pleroma/-/archive/$(VERSION)/pleroma-$(VERSION).tar.bz2
decompress:
tar -xf pleroma-$(VERSION).tar.bz2
ueberauth:
sed -i 's/MIX_ENV\=prod/MIX_ENV\=prod \\\n OAUTH_CONSUMER_STRATEGIES\="twitter facebook google microsoft keycloak:ueberauth_keycloak_strategy"/g' pleroma-$(VERSION)/Dockerfile
build:
docker buildx build --platform linux/amd64,linux/arm64,linux/arm --push \
--cache-from=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
--cache-to=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) \
--tag ${CI_REGISTRY_IMAGE}/${IMAGE}:$(VERSION) pleroma-$(VERSION)

1
pleroma/version Normal file
View File

@ -0,0 +1 @@
VERSION=v2.2.1