|
98 | 98 | - name: Download InfluxDB (if not cached) |
99 | 99 | if: steps.cache-influxdb.outputs.cache-hit != 'true' |
100 | 100 | run: | |
101 | | - INFLUXDB_VERSION=1.8.10 |
102 | | - INFLUXDB_TAR=influxdb-${INFLUXDB_VERSION}_darwin_amd64.tar.gz |
103 | | - INFLUXDB_URL=https://dl.influxdata.com/influxdb/releases/${INFLUXDB_TAR} |
104 | | - |
105 | | - echo "Downloading InfluxDB ${INFLUXDB_VERSION}..." |
106 | | - curl -L -o "${INFLUXDB_TAR}" "${INFLUXDB_URL}" |
107 | | - |
108 | | - echo "Extracting InfluxDB..." |
109 | | - tar -xzf "${INFLUXDB_TAR}" |
110 | | - |
111 | | - echo "Verifying InfluxDB binary..." |
112 | | - if [ ! -f "influxdb-${INFLUXDB_VERSION}-1/usr/bin/influxd" ]; then |
113 | | - echo "ERROR: InfluxDB binary not found at expected path: influxdb-${INFLUXDB_VERSION}-1/usr/bin/influxd" |
114 | | - echo "Extracted contents:" |
115 | | - ls -la influxdb-${INFLUXDB_VERSION}-1/ || true |
116 | | - exit 1 |
117 | | - fi |
118 | | - ls -la influxdb-${INFLUXDB_VERSION}-1/usr/bin/influxd |
119 | | - chmod +x influxdb-${INFLUXDB_VERSION}-1/usr/bin/influxd |
| 101 | + scripts/download-influxdb.sh 1.8.10 darwin_amd64 |
120 | 102 | |
121 | 103 | - name: Start InfluxDB |
122 | 104 | run: | |
@@ -186,26 +168,8 @@ jobs: |
186 | 168 | - name: Download InfluxDB (if not cached) |
187 | 169 | if: steps.cache-influxdb.outputs.cache-hit != 'true' |
188 | 170 | run: | |
189 | | - INFLUXDB_VERSION=1.8.10 |
190 | 171 | # Note: InfluxDB 1.8.10 only has amd64/x86_64 binaries, but will run on Apple Silicon via Rosetta |
191 | | - INFLUXDB_TAR=influxdb-${INFLUXDB_VERSION}_darwin_amd64.tar.gz |
192 | | - INFLUXDB_URL=https://dl.influxdata.com/influxdb/releases/${INFLUXDB_TAR} |
193 | | - |
194 | | - echo "Downloading InfluxDB ${INFLUXDB_VERSION} (amd64, runs on Apple Silicon via Rosetta)..." |
195 | | - curl -L -o "${INFLUXDB_TAR}" "${INFLUXDB_URL}" |
196 | | - |
197 | | - echo "Extracting InfluxDB..." |
198 | | - tar -xzf "${INFLUXDB_TAR}" |
199 | | - |
200 | | - echo "Verifying InfluxDB binary..." |
201 | | - if [ ! -f "influxdb-${INFLUXDB_VERSION}-1/usr/bin/influxd" ]; then |
202 | | - echo "ERROR: InfluxDB binary not found at expected path: influxdb-${INFLUXDB_VERSION}-1/usr/bin/influxd" |
203 | | - echo "Extracted contents:" |
204 | | - ls -la influxdb-${INFLUXDB_VERSION}-1/ || true |
205 | | - exit 1 |
206 | | - fi |
207 | | - ls -la influxdb-${INFLUXDB_VERSION}-1/usr/bin/influxd |
208 | | - chmod +x influxdb-${INFLUXDB_VERSION}-1/usr/bin/influxd |
| 172 | + scripts/download-influxdb.sh 1.8.10 darwin_amd64 |
209 | 173 | |
210 | 174 | - name: Start InfluxDB |
211 | 175 | run: | |
|
0 commit comments