Added workflow
This commit is contained in:
38
.github/workflows/master.yml
vendored
Normal file
38
.github/workflows/master.yml
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
name: Build/Push (master)
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'master'
|
||||
pull_request:
|
||||
branches:
|
||||
- 'master'
|
||||
|
||||
jobs:
|
||||
build-docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Build and push docker image
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
platforms: linux/arm64,linux/amd64
|
||||
push: true
|
||||
tags: ebrianne/docker-deluge-openvpn:latest
|
39
.github/workflows/tag.yml
vendored
Normal file
39
.github/workflows/tag.yml
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
name: Build/Push (tag)
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
build-docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Get the version
|
||||
id: get_version
|
||||
run: echo ::set-output name=TAG_NAME::${GITHUB_REF/refs\/tags\//}
|
||||
|
||||
- name: Build and push docker image
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
platforms: linux/arm64,linux/amd64
|
||||
push: true
|
||||
tags: ebrianne/docker-deluge-openvpn:${{ steps.get_version.outputs.TAG_NAME }}
|
@@ -1,5 +1,8 @@
|
||||
# OpenVPN and Deluge with WebUI
|
||||
|
||||
/badge.svg?branch=master)
|
||||
[](https://hub.docker.com/r/ebrianne/docker-deluge-openvpn/)
|
||||
|
||||
## Acknowledgments
|
||||
|
||||
This project is based heavily on the fork of [docker-transmission-openvpn](https://github.com/haugene/docker-transmission-openvpn).
|
||||
|
Reference in New Issue
Block a user