Skip to content

Commit 78e43ad

Browse files
authored
ci: T8943: migrate branch-name refs current->rolling (rollout 1c) (#1204)
Tracking: T8943
1 parent 94e4666 commit 78e43ad

7 files changed

Lines changed: 56 additions & 56 deletions

.github/workflows/check-unused-imports.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Check for unused imports using Pylint
22
on:
33
pull_request:
44
branches:
5-
- current
5+
- rolling
66
- sagitta
77
- equuleus
88
workflow_dispatch:

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: "Perform CodeQL Analysis"
33
on:
44
push:
55
branches:
6-
- current
6+
- rolling
77
- circinus
88
- sagitta
99
paths:
@@ -13,7 +13,7 @@ on:
1313
pull_request:
1414
# The branches below must be a subset of the branches above
1515
branches:
16-
- current
16+
- rolling
1717
- circinus
1818
- sagitta
1919
paths:

.github/workflows/linit-j2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: J2 Lint
44
on:
55
pull_request:
66
branches:
7-
- current
7+
- rolling
88
- sagitta
99
- equuleus
1010
workflow_dispatch:

.github/workflows/package-smoketest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
push:
66
branches:
7-
- current
7+
- rolling
88
- circinus
99
- sagitta
1010
paths:
@@ -15,7 +15,7 @@ on:
1515
- '!docker-vyos/**'
1616
pull_request_target:
1717
branches:
18-
- current
18+
- rolling
1919
- circinus
2020
- sagitta
2121
paths:

.github/workflows/pr-mirror-repo-sync.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: PR Mirror and Repo Sync
66
on:
77
pull_request_target:
88
types: [closed]
9-
branches: [current]
9+
branches: [rolling]
1010
workflow_dispatch:
1111
inputs:
1212
sync_branch:
Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
1-
name: Trigger Docker image build
2-
3-
on:
4-
pull_request_target:
5-
types:
6-
- closed
7-
branches:
8-
- current
9-
- circinus
10-
- sagitta
11-
12-
permissions:
13-
packages: write
14-
contents: read
15-
attestations: write
16-
id-token: write
17-
pull-requests: read
18-
19-
jobs:
20-
track-changes:
21-
if: github.event.pull_request.merged == true
22-
runs-on: ubuntu-latest
23-
24-
env:
25-
REF: main # Used for curl to trigger image build
26-
27-
steps:
28-
- name: Checkout vyos/vyos-build repo
29-
uses: actions/checkout@v6
30-
with:
31-
ref: ${{ github.event.pull_request.base.ref }}
32-
33-
- uses: dorny/paths-filter@v3
34-
id: changes
35-
with:
36-
filters: |
37-
docker-dir:
38-
- 'docker/**'
39-
40-
- name: "Trigger Docker image build for ${{ github.event.pull_request.base.ref }}"
41-
if: ${{ steps.changes.outputs.docker-dir == 'true' }}
42-
run: |
43-
curl -L \
44-
-X POST \
45-
-H "Accept: application/vnd.github+json" \
46-
-H "Authorization: Bearer ${{ secrets.PAT }}" \
47-
-H "X-GitHub-Api-Version: 2022-11-28" \
48-
https://api.github.com/repos/${{ secrets.REMOTE_OWNER }}/${{ secrets.REMOTE_REUSE_REPO }}/actions/workflows/build-docker-image.yml/dispatches \
1+
name: Trigger Docker image build
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- closed
7+
branches:
8+
- rolling
9+
- circinus
10+
- sagitta
11+
12+
permissions:
13+
packages: write
14+
contents: read
15+
attestations: write
16+
id-token: write
17+
pull-requests: read
18+
19+
jobs:
20+
track-changes:
21+
if: github.event.pull_request.merged == true
22+
runs-on: ubuntu-latest
23+
24+
env:
25+
REF: main # Used for curl to trigger image build
26+
27+
steps:
28+
- name: Checkout vyos/vyos-build repo
29+
uses: actions/checkout@v6
30+
with:
31+
ref: ${{ github.event.pull_request.base.ref }}
32+
33+
- uses: dorny/paths-filter@v3
34+
id: changes
35+
with:
36+
filters: |
37+
docker-dir:
38+
- 'docker/**'
39+
40+
- name: "Trigger Docker image build for ${{ github.event.pull_request.base.ref }}"
41+
if: ${{ steps.changes.outputs.docker-dir == 'true' }}
42+
run: |
43+
curl -L \
44+
-X POST \
45+
-H "Accept: application/vnd.github+json" \
46+
-H "Authorization: Bearer ${{ secrets.PAT }}" \
47+
-H "X-GitHub-Api-Version: 2022-11-28" \
48+
https://api.github.com/repos/${{ secrets.REMOTE_OWNER }}/${{ secrets.REMOTE_REUSE_REPO }}/actions/workflows/build-docker-image.yml/dispatches \
4949
-d '{"ref": "${{ env.REF }}", "inputs":{"branch":"${{ github.event.pull_request.base.ref }}", "environment":"production"}}'

.github/workflows/trigger_rebuild_packages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Trigger to build package
33
on:
44
push:
55
branches:
6-
- current
6+
- rolling
77

88
jobs:
99
changes:

0 commit comments

Comments
 (0)