-
Notifications
You must be signed in to change notification settings - Fork 0
128 lines (104 loc) · 4.53 KB
/
nightly.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
name: Nightly Builds
on:
workflow_dispatch:
schedule:
- cron: "37 22 * * *"
jobs:
periodic_release_head:
name: Periodic Release for HEAD
runs-on: ubuntu-20.04
steps:
- name: Get operator-sdk
run: curl --output operator-sdk -JL https://github.com/operator-framework/operator-sdk/releases/download/$RELEASE_VERSION/operator-sdk-$RELEASE_VERSION-x86_64-linux-gnu
env:
RELEASE_VERSION: v0.19.4
- name: Get opm
run: curl --output opm -JL https://github.com/operator-framework/operator-registry/releases/download/$RELEASE_VERSION/linux-amd64-opm
env:
RELEASE_VERSION: v1.18.0
- name: Install jq
run: sudo apt-get install -y jq sed
- name: Make operator-sdk executable
run: chmod +x operator-sdk
- name: Move operator-sdk binary
run: sudo mv operator-sdk /usr/local/bin
- name: Make opm executable
run: chmod +x opm
- name: Move opm binary
run: sudo mv opm /usr/local/bin
- name: Get Smart Gateway Operator
uses: actions/checkout@v3
with:
repository: infrawatch/smart-gateway-operator
path: smart-gateway-operator
- name: Get Service Telemetry Operator
uses: actions/checkout@v3
with:
repository: infrawatch/service-telemetry-operator
path: service-telemetry-operator
- name: Checkout code
uses: actions/checkout@v3
with:
path: release-automation
- name: Run release builder
run: ${{ github.workspace }}/release-automation/releaser.sh
env:
GITHUB_WORKSPACE: ${{ github.workspace }}
QUAY_INFRAWATCH_OPERATORS_USERNAME: ${{ secrets.QUAY_INFRAWATCH_OPERATORS_USERNAME }}
QUAY_INFRAWATCH_OPERATORS_PASSWORD: ${{ secrets.QUAY_INFRAWATCH_OPERATORS_PASSWORD }}
QUAY_INFRAWATCH_USERNAME: ${{ secrets.QUAY_INFRAWATCH_USERNAME }}
QUAY_INFRAWATCH_PASSWORD: ${{ secrets.QUAY_INFRAWATCH_PASSWORD }}
IMAGE_TAG: "latest" # copy workload artifacts FROM this tag
INSPECTION_TAG: "nightly" # copy workload artifacts TO this tag
BUNDLE_TAG: "nightly-head" # create bundles with this tag
INDEX_IMAGE_TAG: "nightly" # create index image with this tag
periodic_release_1_5:
name: Periodic Release for STF 1.5
runs-on: ubuntu-20.04
steps:
- name: Get operator-sdk
run: curl --output operator-sdk -JL https://github.com/operator-framework/operator-sdk/releases/download/$RELEASE_VERSION/operator-sdk-$RELEASE_VERSION-x86_64-linux-gnu
env:
RELEASE_VERSION: v0.19.4
- name: Get opm
run: curl --output opm -JL https://github.com/operator-framework/operator-registry/releases/download/$RELEASE_VERSION/linux-amd64-opm
env:
RELEASE_VERSION: v1.18.0
- name: Install jq
run: sudo apt-get install -y jq sed
- name: Make operator-sdk executable
run: chmod +x operator-sdk
- name: Move operator-sdk binary
run: sudo mv operator-sdk /usr/local/bin
- name: Make opm executable
run: chmod +x opm
- name: Move opm binary
run: sudo mv opm /usr/local/bin
- name: Get Smart Gateway Operator
uses: actions/checkout@v3
with:
repository: infrawatch/smart-gateway-operator
path: smart-gateway-operator
ref: stable-1.5
- name: Get Service Telemetry Operator
uses: actions/checkout@v3
with:
repository: infrawatch/service-telemetry-operator
path: service-telemetry-operator
ref: stable-1.5
- name: Checkout code
uses: actions/checkout@v3
with:
path: release-automation
- name: Run release builder
run: ${{ github.workspace }}/release-automation/releaser.sh
env:
GITHUB_WORKSPACE: ${{ github.workspace }}
QUAY_INFRAWATCH_OPERATORS_USERNAME: ${{ secrets.QUAY_INFRAWATCH_OPERATORS_USERNAME }}
QUAY_INFRAWATCH_OPERATORS_PASSWORD: ${{ secrets.QUAY_INFRAWATCH_OPERATORS_PASSWORD }}
QUAY_INFRAWATCH_USERNAME: ${{ secrets.QUAY_INFRAWATCH_USERNAME }}
QUAY_INFRAWATCH_PASSWORD: ${{ secrets.QUAY_INFRAWATCH_PASSWORD }}
IMAGE_TAG: "stable-1.5" # copy workload artifacts FROM this tag
INSPECTION_TAG: "nightly-1.5" # copy workload artifacts TO this tag
BUNDLE_TAG: "nightly-1.5" # create bundles with this tag
INDEX_IMAGE_TAG: "nightly-1.5" # create index image with this tag