You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
SUpload/.gitlab-ci.yml

51 lines
1.8 KiB
YAML

stages:
# - test
- package
# test:
# stage: test
# image: alpine:latest
# tags:
# - docker
# cache:
# paths:
# - binaries/*.apk
# script:
# - apk update && apk add curl libnotify bash jq
# - bash
# - cp supload.sh /usr/bin/supload
# - supload -v
# - supload -h
# - echo "test" | supload -V -
# - supload -V LICENSE
# - supload -V supload.sh
# - supload -Vd https://volkor.me supload.sh
package:linux:deb:
stage: package
image: cdrx/fpm-debian:latest
tags:
- docker
script:
- fpm -s dir -t deb -n supload -a all --description "SUpload is an easy to use script for taking screenshots and uploading files to a curl supported file host. Supports SFW and NSFW modes, perfect for shitposting, AND for work!" --license MIT -d bash -d curl -d jq --deb-recommends maim --deb-suggests xclip --deb-suggests libnotify-bin -m "Volkor The Barbarian Warrior <me@volkor.me>" --config-files /etc/supload.conf -v $CI_COMMIT_REF_NAME supload.sh=/usr/local/bin/supload supload.conf=/etc/supload.conf
artifacts:
name: supload_${CI_COMMIT_REF_NAME}
paths:
- ./*.deb
only:
- tags
package:linux:rpm:
stage: package
image: cdrx/fpm-centos:latest
tags:
- docker
script:
- fpm -s dir -t rpm -n supload -a all --description "SUpload is an easy to use script for taking screenshots and uploading files to a curl supported file host. Supports SFW and NSFW modes, perfect for shitposting, AND for work!" --license MIT -d bash -d curl -d jq -d maim -d libnotify -m "Volkor The Barbarian Warrior <me@volkor.me>" --config-files /etc/supload.conf -v $CI_COMMIT_REF_NAME supload.sh=/usr/local/bin/supload supload.conf=/etc/supload.conf
artifacts:
name: supload_${CI_COMMIT_REF_NAME}
paths:
- ./*.rpm
only:
- tags