From ef8f81be54f32a9067f918215b41f931a597eb3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemek=20Draga=C5=84czuk?= Date: Sun, 1 Nov 2020 15:22:19 +0000 Subject: [PATCH] Migrate to GitLab --- .github/ISSUE_TEMPLATE/bug_report.md | 33 ----------------------- .github/ISSUE_TEMPLATE/feature_request.md | 20 -------------- .github/workflows/docker-image.yml | 18 ------------- .gitlab-ci.yml | 28 +++++++++++++++++++ README.md | 11 +++----- 5 files changed, 32 insertions(+), 78 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/bug_report.md delete mode 100644 .github/ISSUE_TEMPLATE/feature_request.md delete mode 100644 .github/workflows/docker-image.yml create mode 100644 .gitlab-ci.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index b101e84..0000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,33 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve -title: '' -labels: bug -assignees: '' - ---- - -**Describe the bug** -A clear and concise description of what the bug is. - -**To Reproduce** -Steps to reproduce the behavior: -1. Go to '...' -2. Click on '....' -3. Scroll down to '....' -4. See error - -**Expected behavior** -A clear and concise description of what you expected to happen. - -**Screenshots** -If applicable, add screenshots to help explain your problem. - -**System information:** - - Browser OS: [e.g. iOS] - - Browser [e.g. chrome, safari] - - Server OS: [e.g. Ubuntu 20.04] - - Version: [latest as of date or version tag] - -**Additional context** -Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index 11fc491..0000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for this project -title: '' -labels: enhancement -assignees: '' - ---- - -**Is your feature request related to a problem? Please describe.** -A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] - -**Describe the solution you'd like** -A clear and concise description of what you want to happen. - -**Describe alternatives you've considered** -A clear and concise description of any alternative solutions or features you've considered. - -**Additional context** -Add any other context or screenshots about the feature request here. diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml deleted file mode 100644 index e57d42a..0000000 --- a/.github/workflows/docker-image.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Docker Image CI - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Build the Docker image - run: docker build . --file Dockerfile --tag my-image-name:$(date +%s) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..1d3092d --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,28 @@ +# This file is a template, and might need editing before it works on your project. +docker-build-master: + # Official docker image. + image: docker:latest + stage: build + services: + - docker:dind + before_script: + - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY + script: + - docker build --pull -t "$CI_REGISTRY_IMAGE" . + - docker push "$CI_REGISTRY_IMAGE" + only: + - master + +docker-build: + # Official docker image. + image: docker:latest + stage: build + services: + - docker:dind + before_script: + - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY + script: + - docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" . + - docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" + except: + - master diff --git a/README.md b/README.md index f4adccb..e9cffa2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ![Docker Pulls](https://img.shields.io/docker/pulls/draganczukp/simply-shorten?style=for-the-badge) -![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/draganczukp/simply-shorten?style=for-the-badge) -![GitHub issues](https://img.shields.io/github/issues/draganczukp/simply-shorten?style=for-the-badge) + +[Repository moved to GitLab](https://gitlab.com/draganczukp/simply-shorten) # What is it? A simple selfhosted URL shortener with no unnecessary features. @@ -40,10 +40,7 @@ other ways modern web shows how anti-user it is. We all hate those, and they're not needed here. - Paywalls or messages begging for donations. If you want to support me (for whatever reason), you can message me through Github issues or via email. -[github@draganczuk.tk](mailto:github@draganczuk.tk) - -I _might_ add one of those "fork me on github" thingies in the corner, though I -doubt I will +[admin@draganczuk.me](mailto:admin@draganczuk.me) # Screenshot ![Screenshot](./screenshot.png) @@ -51,7 +48,7 @@ doubt I will # Usage Clone this repository ``` -git clone https://github.com/draganczukp/simply-shorten +git clone https://gitlab.com/draganczukp/simply-shorten ``` ## Building from source Gradle 6.x.x and JDK 11 are required. Other versions are not tested