-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
45 lines (40 loc) · 1.17 KB
/
main-alpine.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
#
# Copyright (C) 2020-2024 Lin Song <linsongui@gmail.com>
#
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
#
# Attribution required: please include my name in any derivative and let me
# know how you have improved it!
name: build
on:
push:
branches: [master]
paths:
- '.github/workflows/main-alpine.yml'
- '.github/workflows/buildx.yml'
- '.github/workflows/shellcheck.yml'
- '.github/workflows/vpn_test.yml'
- '.dockerignore'
- 'Dockerfile'
- 'run.sh'
jobs:
shellcheck:
if: github.repository_owner == 'hwdsl2'
uses: ./.github/workflows/shellcheck.yml
vpn_test:
if: github.repository_owner == 'hwdsl2'
uses: ./.github/workflows/vpn_test.yml
with:
os_type: alpine
buildx:
needs: [shellcheck, vpn_test]
uses: ./.github/workflows/buildx.yml
with:
os_type: alpine
secrets:
CACHE_NAME: ${{ secrets.CACHE_NAME2 }}
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
QUAY_USER: ${{ secrets.QUAY_USER }}
QUAY_TOKEN: ${{ secrets.QUAY_TOKEN }}
BUILD_ONLY: ${{ secrets.BUILD_ONLY }}