Only using github actions and remove travis

This commit is contained in:
2019-09-01 17:18:48 +10:00
parent 594769e8ab
commit edea603ff1
4 changed files with 34 additions and 45 deletions
+16 -3
View File
@@ -5,10 +5,23 @@ on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build the Docker image
run: docker build . --file Dockerfile --tag aria-ui:$(date +%s)
env: # Or as an environment variable
DOCKER_USER: ${{ secrets.DOCKER_HUB_USER }}
DOCKER_PASS: ${{ secrets.DOCKER_HUB_PASS }}
run: docker --version && docker build -t wahyd4/aria2-ui:3.0.$(date +%s) .
- name: Push Docker image
on:
push:
branches:
- master
run: |
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker tag wahyd4/aria2-ui:3.0.$TRAVIS_BUILD_NUMBER wahyd4/aria2-ui:latest
docker push wahyd4/aria2-ui:3.0.$TRAVIS_BUILD_NUMBER
docker push wahyd4/aria2-ui:latest
-22
View File
@@ -1,22 +0,0 @@
language: go
services:
- docker
addons:
apt:
packages:
- docker-ce
jobs:
include:
- stage: "build and push docker image"
script: |
#! /bin/bash -eu
docker --version
docker build -t wahyd4/aria2-ui:3.0.${TRAVIS_BUILD_NUMBER} .
if [ "${TRAVIS_BRANCH}" = "master" ]; then
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker tag wahyd4/aria2-ui:3.0.$TRAVIS_BUILD_NUMBER wahyd4/aria2-ui:latest
docker push wahyd4/aria2-ui:3.0.$TRAVIS_BUILD_NUMBER
docker push wahyd4/aria2-ui:latest
fi
+5 -6
View File
@@ -4,7 +4,6 @@ Aria2 + AriaNg
[![](https://images.microbadger.com/badges/image/wahyd4/aria2-ui.svg)](https://microbadger.com/images/wahyd4/aria2-ui "Get your own image badge on microbadger.com")
[![Docker Pulls](https://img.shields.io/docker/pulls/wahyd4/aria2-ui.svg)](https://hub.docker.com/r/wahyd4/aria2-ui/)
[![Build Status](https://travis-ci.org/wahyd4/aria2-ariang-docker.svg?branch=master)](https://travis-ci.org/wahyd4/aria2-ariang-docker)
[![Github Build](https://github.com/wahyd4/aria2-ariang-docker/workflows/Docker%20Image%20CI/badge.svg)](https://github.com/wahyd4/aria2-ariang-docker/actions)
本镜像包含 Aria2、AriaNg 和File Manager,主要方便那些用户期望只运行一个镜像就能实现图形化下载文件和在线播放文件。(类似离线下载的功能),只使用一个 Docker 镜像也方便用户在群晖NAS 中运行本程序。
@@ -15,12 +14,12 @@ Aria2 + AriaNg
- [快速运行](#快速运行)
- [开启所有功能](#开启所有功能)
- [使用docker-compose 运行](#使用docker-compose-运行)
- [支持的 Docker 环境变量](#支持的-Docker-环境变量)
- [支持的 Docker volume 属性](#支持的-Docker-volume-属性)
- [自动 SSL](#自动-SSL)
- [支持的 Docker 环境变量](#支持的-docker-环境变量)
- [支持的 Docker volume 属性](#支持的-docker-volume-属性)
- [自动 SSL](#自动-ssl)
- [自行构建镜像](#自行构建镜像)
- [Docker Hub](#Docker-Hub)
- [使用 Docker compose 来运行](#使用-Docker-compose-来运行)
- [Docker Hub](#docker-hub)
- [使用 Docker compose 来运行](#使用-docker-compose-来运行)
- [常见问题](#常见问题)
AriaNG
+13 -14
View File
@@ -4,22 +4,21 @@ English | [简体中文](https://github.com/wahyd4/aria2-ariang-docker/blob/mast
[![](https://images.microbadger.com/badges/image/wahyd4/aria2-ui.svg)](https://microbadger.com/images/wahyd4/aria2-ui "Get your own image badge on microbadger.com")
[![Docker Pulls](https://img.shields.io/docker/pulls/wahyd4/aria2-ui.svg)](https://hub.docker.com/r/wahyd4/aria2-ui/)
[![Build Status](https://travis-ci.org/wahyd4/aria2-ariang-docker.svg?branch=master)](https://travis-ci.org/wahyd4/aria2-ariang-docker)
[![Github Build](https://github.com/wahyd4/aria2-ariang-docker/workflows/Docker%20Image%20CI/badge.svg)](https://github.com/wahyd4/aria2-ariang-docker/actions)
- [Features](#Features)
- [Recommended versions](#Recommended-versions)
- [How to run](#How-to-run)
- [Quick run](#Quick-run)
- [Full features run](#Full-features-run)
- [Run with docker-compose](#Run-with-docker-compose)
- [Supported Environment Variables](#Supported-Environment-Variables)
- [Supported Volumes](#Supported-Volumes)
- [Auto SSL enabling](#Auto-SSL-enabling)
- [Build the image by yourself](#Build-the-image-by-yourself)
- [Docker Hub](#Docker-Hub)
- [Usage it in Docker compose](#Usage-it-in-Docker-compose)
- [FAQ](#FAQ)
- [Features](#features)
- [Recommended versions](#recommended-versions)
- [How to run](#how-to-run)
- [Quick run](#quick-run)
- [Full features run](#full-features-run)
- [Run with docker-compose](#run-with-docker-compose)
- [Supported Environment Variables](#supported-environment-variables)
- [Supported Volumes](#supported-volumes)
- [Auto SSL enabling](#auto-ssl-enabling)
- [Build the image by yourself](#build-the-image-by-yourself)
- [Docker Hub](#docker-hub)
- [Usage it in Docker compose](#usage-it-in-docker-compose)
- [FAQ](#faq)
One Docker image for all file downloading, managing, playing and evening sharing platforms!