File tree Expand file tree Collapse file tree 2 files changed +25
-3
lines changed
Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Original file line number Diff line number Diff line change 3636 - name : Run tests
3737 run : make test
3838
39-
4039 debian_ubuntu :
4140 name : Build Debian and Ubuntu based OS images
4241 needs : test-go
@@ -235,8 +234,16 @@ jobs:
235234 SEMVER_PATCH : ${{ env.SEMVER_PATCH }}
236235 if : ${{ matrix.os.name == 'debian' }}
237236
237+ - name : Create GCS destination
238+ run : |
239+ [ "${GITHUB_EVENT_NAME}" == 'pull_request' ] && echo "GCS_DEST=gs://$GCS_BUCKET/metal-os/pull_requests/" >> $GITHUB_ENV || true
240+ [ "${GITHUB_EVENT_NAME}" == 'push' ] && echo "GCS_DEST=gs://$GCS_BUCKET/metal-os" >> $GITHUB_ENV || true
241+
238242 - name : Upload image tarballs to GCS
239- run : cd images && gsutil -m -h "Cache-Control:no-store" cp -r . gs://$GCS_BUCKET/metal-os/pull_requests/
243+ run : |
244+ cd images && gsutil -m -h "Cache-Control:no-store" cp -r . "${GCS_DEST}"
245+ env :
246+ GCS_DEST : ${{ env.GCS_DEST }}
240247
241248 almalinux :
242249 name : Build Almalinux based OS image
@@ -314,5 +321,13 @@ jobs:
314321 service_account_email : ${{ secrets.GCP_SA_EMAIL }}
315322 service_account_key : ${{ secrets.GCP_SA_KEY }}
316323
324+ - name : Create GCS destination
325+ run : |
326+ [ "${GITHUB_EVENT_NAME}" == 'pull_request' ] && echo "GCS_DEST=gs://$GCS_BUCKET/metal-os/pull_requests/" >> $GITHUB_ENV || true
327+ [ "${GITHUB_EVENT_NAME}" == 'push' ] && echo "GCS_DEST=gs://$GCS_BUCKET/metal-os" >> $GITHUB_ENV || true
328+
317329 - name : Upload image tarballs to GCS
318- run : cd images && gsutil -m -h "Cache-Control:no-store" cp -r . gs://$GCS_BUCKET/metal-os/pull_requests/
330+ run : |
331+ cd images && gsutil -m -h "Cache-Control:no-store" cp -r . "${GCS_DEST}"
332+ env :
333+ GCS_DEST : ${{ env.GCS_DEST }}
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ FROM ghcr.io/metal-stack/droptailer-client:${DROPTAILER_VERSION} AS droptailer-a
77
88FROM ghcr.io/metal-stack/firewall-controller:${FIREWALL_CONTROLLER_VERSION} AS firewall-controller-artifacts
99
10+ FROM ghcr.io/metal-stack/frr:10.4.1-ubuntu-24.04 AS frr-artifacts
11+
1012FROM ghcr.io/tailscale/tailscale:${TAILSCALE_VERSION} AS tailscale-artifacts
1113
1214FROM quay.io/prometheus/node-exporter:${NODE_EXPORTER_VERSION} AS node_exporter-artifacts
@@ -27,6 +29,11 @@ RUN apt-get update --quiet \
2729 && apt-get remove --yes iptables \
2830 && apt install --yes iptables
2931
32+ # Forcefully install frr from our own builds because upstream repo removes older patch versions
33+ COPY --from=frr-artifacts /artifacts/*.deb /tmp/
34+ RUN apt remove --yes frr* \
35+ && apt install --yes --allow-downgrades /tmp/*.deb
36+
3037# Context:
3138# - chrony.conf provides default configuration for chrony
3239# - nftables rules are copied in place; nftables.service will load them on startup.
You can’t perform that action at this time.
0 commit comments