Commit 61eca9d4 authored by sebastian@vanwa.ch's avatar sebastian@vanwa.ch

use gitlab ci

parent 93cee0bf
Pipeline #137 passed with stage
in 2 minutes and 18 seconds
services:
- docker:dind
variables:
IMAGE_NAME: thallian/matrix-appservice-whatsapp
build:
stage: build
script:
- docker login -u $DOCKER_USER -p $DOCKER_PASSWORD $DOCKER_REGISTRY
- docker build -t $IMAGE_NAME:$CI_COMMIT_SHA .
- docker build -t $IMAGE_NAME:$CI_COMMIT_REF_NAME .
- docker build -t $IMAGE_NAME:latest .
- docker push $IMAGE_NAME:$CI_COMMIT_SHA
- docker push $IMAGE_NAME:$CI_COMMIT_REF_NAME
- docker push $IMAGE_NAME:latest
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment