Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
opsxcq committed Sep 9, 2017
1 parent a76e4f7 commit 3f0e128
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
variables:
PUBLIC_TAG: 'strm/gmusic-uploader'
stages:
- build

build:
stage: build
script:
- export IMAGE_TAG=$(echo -en $CI_BUILD_REF_NAME | tr -c '[:alnum:]_.-' '-' | sed 's/master/latest/g')
- docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" $CI_REGISTRY
- docker build --pull -t "$CI_REGISTRY_IMAGE:$IMAGE_TAG" .
- docker push "$CI_REGISTRY_IMAGE:$IMAGE_TAG"
- docker tag "$CI_REGISTRY_IMAGE:$IMAGE_TAG" "$PUBLIC_TAG"
tags:
- docker
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM debian:jessie

MAINTAINER opsxcq <opsxcq@thestorm.com.br>
LABEL maintainer "opsxcq@strm.sh"

RUN apt-get update && \
apt-get upgrade -y && \
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# docker-gmusic-uploader
# Google Music uploader

[![Docker Pulls](https://img.shields.io/docker/pulls/strm/gmusic-uploader.svg?style=plastic)](https://hub.docker.com/r/strm/gmusic-uploader/)

0 comments on commit 3f0e128

Please sign in to comment.