Merge branch 'ci' into 'master'

Migrate to GitLab

See merge request draganczukp/simply-shorten!8
This commit is contained in:
Przemek Dragańczuk 2020-11-01 15:22:19 +00:00
commit d9ccd947a3
5 changed files with 32 additions and 78 deletions

View File

@ -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.

View File

@ -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.

View File

@ -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)

28
.gitlab-ci.yml Normal file
View File

@ -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

View File

@ -1,6 +1,6 @@
![Docker Pulls](https://img.shields.io/docker/pulls/draganczukp/simply-shorten?style=for-the-badge) ![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? # What is it?
A simple selfhosted URL shortener with no unnecessary features. 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. not needed here.
- Paywalls or messages begging for donations. If you want to support me (for - 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. whatever reason), you can message me through Github issues or via email.
[github@draganczuk.tk](mailto:github@draganczuk.tk) [admin@draganczuk.me](mailto:admin@draganczuk.me)
I _might_ add one of those "fork me on github" thingies in the corner, though I
doubt I will
# Screenshot # Screenshot
![Screenshot](./screenshot.png) ![Screenshot](./screenshot.png)
@ -51,7 +48,7 @@ doubt I will
# Usage # Usage
Clone this repository Clone this repository
``` ```
git clone https://github.com/draganczukp/simply-shorten git clone https://gitlab.com/draganczukp/simply-shorten
``` ```
## Building from source ## Building from source
Gradle 6.x.x and JDK 11 are required. Other versions are not tested Gradle 6.x.x and JDK 11 are required. Other versions are not tested