Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
284a07f
Update ci.yml
fayewong-v5 Jun 9, 2021
1224723
Update ci.yml
fayewong-v5 Jun 9, 2021
cad690a
Update ci.yml
fayewong-v5 Jun 9, 2021
fc888a5
Update ci.yml
fayewong-v5 Jun 9, 2021
ff1b003
Update ci.yml
fayewong-v5 Jun 9, 2021
e73e8c1
Update ci.yml
fayewong-v5 Jun 9, 2021
1c3602e
Update ci.yml
fayewong-v5 Jun 9, 2021
db70de5
Update ci.yml
fayewong-v5 Jun 9, 2021
d82ff8c
Update ci.yml
fayewong-v5 Jun 9, 2021
761c75a
add matrix.yml
fayewong-v5 Aug 3, 2021
e0c2044
github.sha
fayewong-v5 Aug 3, 2021
6f6b8db
三维数组
fayewong-v5 Aug 3, 2021
d8a0a15
Update ReadMe.md
fayewong-v5 Aug 30, 2021
435d4eb
Update ReadMe.md
fayewong-v5 Aug 30, 2021
4523537
Update ReadMe.md
fayewong-v5 Aug 30, 2021
71593fd
add
fayewong-v5 Oct 22, 2021
e06118c
Update timer.yml
fayewong-v5 Oct 22, 2021
3a11822
Update ci.yml
fayewong-v5 Oct 28, 2021
f3b001a
Update matrix_3.yml
fayewong-v5 Oct 29, 2021
86457a2
Update matrix_3.yml
fayewong-v5 Oct 29, 2021
28d913a
Update matrix_3.yml
fayewong-v5 Oct 29, 2021
3070dee
Update matrix_3.yml
fayewong-v5 Oct 29, 2021
d7d1d2a
Create matrix_2.yml
fayewong-v5 Nov 1, 2021
d9faec5
Update matrix_2.yml
fayewong-v5 Nov 1, 2021
abaf948
Update matrix_2.yml
fayewong-v5 Nov 1, 2021
973eece
Update matrix_2.yml
fayewong-v5 Nov 1, 2021
96d360f
Update matrix_2.yml
fayewong-v5 Nov 1, 2021
f1c5765
Update matrix_2.yml
fayewong-v5 Nov 1, 2021
291c6ea
Update matrix_2.yml
fayewong-v5 Nov 3, 2021
62c348c
Create delete.yml
fayewong-v5 Nov 8, 2021
5f2562c
Update delete.yml
fayewong-v5 Nov 8, 2021
67b2290
Update context-1.yml
fayewong-v5 Nov 8, 2021
cbbf106
Update ci.yml
fayewong-v5 Nov 12, 2021
5850252
Update ci.yml
fayewong-v5 Nov 12, 2021
9134507
Update ci.yml
fayewong-v5 Nov 12, 2021
3b4f21a
Create workflow_dispatch.yml
fayewong-v5 Nov 15, 2021
cea70c2
Create workflow_call.yml
fayewong-v5 Nov 15, 2021
ae03487
Update timer.yml
fayewong-v5 Nov 23, 2021
d7019f2
Create matrix_4.yml
fayewong-v5 Dec 13, 2021
b1880c6
Update matrix_4.yml
fayewong-v5 Dec 13, 2021
731acbb
Update matrix_4.yml
fayewong-v5 Dec 13, 2021
0981b12
Update matrix_4.yml
fayewong-v5 Dec 13, 2021
b1976ca
Update matrix_4.yml
fayewong-v5 Dec 13, 2021
9d922b1
Update matrix_4.yml
fayewong-v5 Dec 13, 2021
a37840a
Update matrix_4.yml
fayewong-v5 Dec 13, 2021
cd93ffe
Update matrix_4.yml
fayewong-v5 Dec 13, 2021
9faa0c8
test
fayewong-v5 Dec 21, 2021
2c538b6
Create issue.yml
fayewong-v5 Dec 21, 2021
6f4cc04
Update matrix_3.yml
fayewong-v5 Jan 4, 2022
e7383ca
Update matrix_3.yml
fayewong-v5 Jan 4, 2022
d48a210
Update matrix_3.yml
fayewong-v5 Jan 4, 2022
1ef198a
Update matrix_3.yml
fayewong-v5 Jan 4, 2022
96dd3d8
Update matrix_3.yml
fayewong-v5 Jan 4, 2022
081234e
Update matrix_3.yml
fayewong-v5 Jan 5, 2022
eaccc7d
Set up CI with Azure Pipelines
fayewong-v5 Jan 5, 2022
f0b2eb2
Update azure-pipelines.yml
fayewong-v5 Jan 5, 2022
1d30acf
Update context-1.yml
fayewong-v5 Jan 5, 2022
e74dcf9
Set up CI with Azure Pipelines
fayewong-v5 Jan 5, 2022
cb4c4d7
Update azure-pipelines1.yml
fayewong-v5 Jan 5, 2022
eb9f4cf
Merge pull request #15 from fayewong-v5/azure-pipelines
fayewong-v5 Jan 5, 2022
a4b2cbd
Update azure-pipelines.yml for Azure Pipelines
fayewong-v5 Jan 5, 2022
4ad314b
Update azure-pipelines.yml
fayewong-v5 Jan 5, 2022
11b5781
在master上修改触发器
fayewong-v5 Jan 5, 2022
58ade6e
Update ci.yml
fayewong-v5 Mar 3, 2022
6cf04c2
Update ci.yml
fayewong-v5 Mar 3, 2022
80f8d88
Update ci.yml
fayewong-v5 Mar 3, 2022
2380449
Update ci.yml
fayewong-v5 Mar 3, 2022
a7a2ba9
Create concurrency.yml
fayewong-v5 Mar 22, 2022
22f4f00
Update concurrency.yml
fayewong-v5 Mar 22, 2022
c79381c
Update concurrency.yml
fayewong-v5 Mar 22, 2022
558f75e
Update concurrency.yml
fayewong-v5 Mar 22, 2022
565a03d
Update concurrency.yml
fayewong-v5 Mar 22, 2022
ee37b7f
Update concurrency.yml
fayewong-v5 Mar 22, 2022
8231778
Update concurrency.yml
fayewong-v5 Mar 22, 2022
c6c869b
Create concurrency_1.yml
fayewong-v5 Mar 22, 2022
ba49c0a
Update concurrency.yml
fayewong-v5 Mar 22, 2022
a9ab689
Merge branch 'master' of https://github.com/fayewong-v5/present into …
fayewong-v5 Mar 22, 2022
ec9bc93
修改触发条件
fayewong-v5 Mar 22, 2022
3e2dc23
UPDATE
fayewong-v5 Mar 22, 2022
afba3e1
先占用
fayewong-v5 Mar 22, 2022
019baf4
执行下
fayewong-v5 Mar 22, 2022
fc0a32b
Merge pull request #16 from fayewong-v5/01-11
fayewong-v5 Mar 22, 2022
ad40fcf
先运行
fayewong-v5 Mar 22, 2022
3d8720a
同样的组
fayewong-v5 Mar 22, 2022
b60a3e4
111
fayewong-v5 Mar 22, 2022
eed9cc1
7
fayewong-v5 Mar 22, 2022
1db4ca4
30s
fayewong-v5 Mar 22, 2022
aa23e18
8
fayewong-v5 Mar 22, 2022
e582e4d
60s
fayewong-v5 Mar 22, 2022
38f0500
999
fayewong-v5 Mar 22, 2022
2526055
10
fayewong-v5 Mar 22, 2022
eca514a
Update ci.yml
fayewong-v5 Mar 24, 2022
7a08122
Update ci.yml
fayewong-v5 Mar 24, 2022
4382ded
Update ci.yml
fayewong-v5 Mar 24, 2022
681f3e1
Update ci.yml
fayewong-v5 Mar 24, 2022
25d8ff5
Update ci.yml
fayewong-v5 Mar 24, 2022
33b6103
Update ci.yml
fayewong-v5 Mar 24, 2022
2cba2c7
Update ci.yml
fayewong-v5 Mar 24, 2022
4d04877
Update ci.yml
fayewong-v5 Mar 24, 2022
433c431
11111
fayewong-v5 Mar 24, 2022
a9e6113
22222
fayewong-v5 Mar 24, 2022
bd21dde
Update concurrency_1.yml
fayewong-v5 Mar 24, 2022
dd59a82
33333
fayewong-v5 Mar 24, 2022
9f454e1
Create command.yml
fayewong-v5 Apr 13, 2022
872d531
Update command.yml
fayewong-v5 Apr 13, 2022
308f719
123
fayewong-v5 Jun 27, 2022
1c60af1
Update context-1.yml
fayewong-v5 Jun 27, 2022
d625565
Update context-1.yml
fayewong-v5 Jun 27, 2022
1755e83
Update context-1.yml
fayewong-v5 Jun 27, 2022
7d11ad4
Update ReadMe.md
fayewong-v5 Oct 19, 2022
3850a36
Update ci.yml
fayewong-v5 Nov 25, 2022
f710c22
Update ReadMe.md
fayewong-v5 Jan 3, 2023
420dd6c
Update requirements.txt
fayewong-v5 Apr 18, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# This is a basic workflow to help you get started with Actions

name: use matrix

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
paths:
- .github/workflows/blank.yml
pull_request:
branches: [ master ]
paths:
- .github/workflows/blank.yml

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

strategy:
matrix:
cpu: ["amd64"]
service: ["controller-manager", "admission-webhook", "metrics-apiserver", "keepalived-manager", "corefile-manager"]
include:
- cpu: "arm64"
service: "keepalived-manager"
- cpu: "arm64"
service: "corefile-manager"

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
#- uses: actions/checkout@v2

# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!

# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: |
if [ ${{ matrix.cpu }} == "amd64" ];then
echo "::set-output name=targetImageTag::v1.0.0-${{ github.sha }}-${{ matrix.cpu }}"
echo "::set-output name=dockerFilePath::./build/Dockerfile.${{ matrix.service }}.${{ matrix.cpu }}"
else
echo "::set-output name=targetImageTag::v1.0.0-${{ github.sha }}"
echo "::set-output name=dockerFilePath::./build/Dockerfile.${{ matrix.service }}-ci.${{ matrix.cpu }}"
fi
id: prepare
- run: |
echo "targetImageTag is ${{ steps.prepare.outputs.targetImageTag }}"
echo "dockerFilePath is ${{ steps.prepare.outputs.dockerFilePath }}"
41 changes: 34 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
# This is a basic workflow to help you get started with Actions

name: main

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches:
- '**'
paths:
- .github/workflows/ci.yml
pull_request_target:
branches:
- 'master'
paths:
- .github/workflows/ci.yml
issues:
types: [opened]

Expand All @@ -27,11 +29,15 @@ jobs:
- uses: actions/checkout@v2

# Runs a single command using the runners shell
- name: 查看文件
run: ls -l
- name: 查看文件,set d
id: s1
run: |
ls -l
echo "::set-output name=d::这是个d"

# Runs a set of commands using the runners shell
- name: GITHUB envs
- name: GITHUB envs,set a|b|c
id: s2
run: |
echo "GITHUB_SHA is ${GITHUB_SHA}"
echo "GITHUB_REF is ${GITHUB_REF}"
Expand All @@ -49,7 +55,13 @@ jobs:
echo "my TEST_PWD is ${{secrets.TEST_PWD}}" > "test.txt"
cat test.txt

echo "::set-output name=a::test___${{secrets.TEST_PWD}}"
echo "::set-output name=b::test___123456}}"
echo "::set-output name=c::这是个c"

echo "==========================="
echo "github.head_ref is ${{ github.head_ref }}"

- uses: actions/upload-artifact@v2
with:
name: my-artifact
Expand All @@ -69,6 +81,7 @@ jobs:
echo "job.status is ${{job.status}}"
echo "job.container.id is ${{job.container.id}}"
echo "job.container.network is ${{job.container.network}}"
if: ${{ job.status }} == 'success' && ${{ github.workflow }} == 'main'

- name: Dump GitHub context
env:
Expand All @@ -86,13 +99,27 @@ jobs:
env:
RUNNER_CONTEXT: ${{ toJson(runner) }}
run: echo "$RUNNER_CONTEXT"
outputs:
a: ${{ steps.s2.outputs.a }}
b: ${{ steps.s2.outputs.b }}
c: ${{ steps.s2.outputs.c }}
d: ${{ steps.s1.outputs.d }}


test:
runs-on: ubuntu-latest
name: test
name: show pre-step output
needs: build
steps:
- run: echo "hello"; ls -l
- run: |
echo "hello"
ls -l
echo " needs.build.outputs.a is ${{ needs.build.outputs.a }}"
echo " needs.build.outputs.b is ${{ needs.build.outputs.b }}"
echo " needs.build.outputs.c is ${{ needs.build.outputs.c }}"

echo " needs.build.outputs.d is ${{ needs.build.outputs.d }}"


commentOnNewIssues:
name: Comment On New Issues
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/command.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: use command

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
paths:
- .github/workflows/command.yml
pull_request:
branches: [ master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: |
content=$(ls -l ..)
echo "$content"
content="${content//'%'/'%25'}"
content="${content//$'\n'/'%0A'}"
content="${content//$'\r'/'%0D'}"
echo "::set-output name=content::$content"
id: prepare
- run: |
echo "steps.prepare.outputs.content is ${{ steps.prepare.outputs.content }}"

19 changes: 19 additions & 0 deletions .github/workflows/concurrency.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: use concurrency

concurrency: ${{ github.ref }}


# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
paths:
- .github/workflows/concurrency.yml
pull_request:
branches: [ master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: echo "hello 100"
25 changes: 25 additions & 0 deletions .github/workflows/concurrency_1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: use concurrency_1

concurrency: ${{ github.ref }}


# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
paths:
- .github/workflows/concurrency_1.yml
pull_request:
branches: [ master ]
paths:
- .github/workflows/concurrency_1.yml


jobs:
build:
runs-on: ubuntu-latest
steps:
- run: |
echo "hello concurrency_1.yml"
sleep 120s
19 changes: 15 additions & 4 deletions .github/workflows/context-1.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
name: P1
on: push
on:
push:
branches:
- "**"
paths:
- .github/workflows/context-1.yml

jobs:
one:
runs-on: ubuntu-16.04
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Dump job context
run: |
# echo "$GITHUB_CONTEXT"
echo "111111111111"
echo ${{ github.aaaaa }}
echo ${{ github['aaaaa'] }}
echo "2222222222222"

- name: Dump job context1
env:
JOB_CONTEXT: ${{ toJson(job) }}
run: echo "$JOB_CONTEXT"
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/delete.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on: delete

jobs:
test:
runs-on: ubuntu-latest
steps:
- run: |
echo github.action is ${{ github.action }}
echo github.actor is ${{ github.actor }}
echo github.base_ref is ${{ github.base_ref }}
echo github.event_name is ${{ github.event_name }}
echo github.head_ref is ${{ github.head_ref }}
echo github.ref is ${{ github.ref }}
echo github.ref_name is ${{ github.ref_name }}
echo github.ref_protected is ${{ github.ref_protected }}
echo github.ref_type is ${{ github.ref_type }}
echo github.repository is ${{ github.repository }}
echo github.repository_owner is ${{ github.repository_owner }}
echo github.sha is ${{ github.sha }}
echo github.workflow is ${{ github.workflow }}
22 changes: 22 additions & 0 deletions .github/workflows/issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
issues:
types: [opened, edited, milestoned]

jobs:
test:
runs-on: ubuntu-latest
steps:
- run: |
echo github.action is ${{ github.action }}
echo github.actor is ${{ github.actor }}
echo github.base_ref is ${{ github.base_ref }}
echo github.event_name is ${{ github.event_name }}
echo github.head_ref is ${{ github.head_ref }}
echo github.ref is ${{ github.ref }}
echo github.ref_name is ${{ github.ref_name }}
echo github.ref_protected is ${{ github.ref_protected }}
echo github.ref_type is ${{ github.ref_type }}
echo github.repository is ${{ github.repository }}
echo github.repository_owner is ${{ github.repository_owner }}
echo github.sha is ${{ github.sha }}
echo github.workflow is ${{ github.workflow }}
50 changes: 50 additions & 0 deletions .github/workflows/matrix_2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: use matrix-2

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master, dev ]
paths:
- .github/workflows/matrix_2.yml
pull_request:
branches: [ master, dev ]
paths:
- .github/workflows/matrix_2.yml

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
prepare:
runs-on: ubuntu-latest
steps:
- id: output_data
run: echo "::set-output name=matrix::{\"include\":[{\"project\":\"foo\",\"config\":\"Debug\"},{\"project\":\"bar\",\"config\":\"Release\"}]}"
outputs:
matrix: ${{ steps.output_data.outputs.matrix }}
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
needs: prepare
strategy:
matrix:
a: [a1, a2]
b: [b1, b2]
include:
- d: d1
c: c1
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
#- uses: actions/checkout@v2

# Runs a single command using the runners shell
- name: Run a one-line script
run: |
echo a is ${{ matrix.a }}
echo b is ${{ matrix.b }}
echo c is ${{ matrix.c }}
echo d is ${{ matrix.d }}
Loading