Skip to content
Snippets Groups Projects
Verified Commit 885118f3 authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Initial commit

parents
Branches
Tags
No related merge requests found
Pipeline #6904 passed
image: docker:20.10.12
variables:
DOCKER_TLS_CERTDIR: "/certs"
BUILD_VERSION: prosody-1
services:
- docker:20.10.12-dind
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- SRC_VERSION=`grep FROM Dockerfile | cut -d ':' -f 2`
- VERSION="${SRC_VERSION}-${BUILD_VERSION}"
build:
stage: build
script:
- docker pull $CI_REGISTRY_IMAGE:latest || true
- docker build --cache-from $CI_REGISTRY_IMAGE:latest --tag $CI_REGISTRY_IMAGE:$VERSION --tag $CI_REGISTRY_IMAGE:latest .
- docker push $CI_REGISTRY_IMAGE:$VERSION
- docker push $CI_REGISTRY_IMAGE:latest
FROM chocobozzz/peertube:v4.0.0-bullseye
RUN apt -y update && apt install -y prosody && apt -y clean
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment