-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (63 loc) · 1.94 KB
/
frp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: frpc + frps Docker Image CI
on:
push:
branches: [ master ]
paths:
- frpc/**
- frps/**
- .github/workflows/frp.yml
pull_request:
branches: [ master ]
paths:
- frpc/**
- frps/**
- .github/workflows/frp.yml
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get current date
uses: srfrnk/current-time@master
id: current-date
with:
format: YYYYMMDD
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
- name: Push to Docker Hub
uses: docker/build-push-action@v2
with:
context: ./frpc
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/frpc:latest
- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: ${{ secrets.DOCKERHUB_USERNAME }}/frpc
short-description: 'Frpc docker image.'
readme-filepath: ./frpc/README.md
- name: Push to Docker Hub
uses: docker/build-push-action@v2
with:
context: ./frps
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/frps:latest
- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: ${{ secrets.DOCKERHUB_USERNAME }}/frps
short-description: 'Frps docker image.'
readme-filepath: ./frps/README.md