updated support for arm
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Samuel Philipp 2023-09-28 01:16:04 +02:00
parent b127e8da3e
commit bd07c9a33e
2 changed files with 4 additions and 4 deletions

View file

@ -6,7 +6,7 @@ pipeline:
- DOCKER_PASSWORD - DOCKER_PASSWORD
settings: settings:
repo: spcodes/cadvisor repo: spcodes/cadvisor
platforms: linux/amd64,linux/arm64/v8,linux/arm/v7 platforms: linux/amd64,linux/arm64/v8
tags: tags:
- v0.47.2 - v0.47.2
- latest - latest
@ -25,7 +25,7 @@ pipeline:
settings: settings:
registry: cr.sp-codes.de registry: cr.sp-codes.de
repo: cr.sp-codes.de/sp-codes/cadvisor repo: cr.sp-codes.de/sp-codes/cadvisor
platforms: linux/amd64,linux/arm64/v8,linux/arm/v7 platforms: linux/amd64,linux/arm64/v8
tags: tags:
- v0.47.2 - v0.47.2
- latest - latest

View file

@ -1,5 +1,5 @@
# STEP 1 build executable binary # STEP 1 build executable binary
FROM golang:1.17.3-alpine3.13@sha256:33c95bc78fa434bae90c45d04e5a02612492acbb7118f35538a56ee0646c1bb7 AS builder FROM golang:1.17.3-alpine3.13 AS builder
ENV CADVISOR_VERSION="v0.47.2" ENV CADVISOR_VERSION="v0.47.2"
@ -11,7 +11,7 @@ RUN apk upgrade --no-cache \
&& ./build/build.sh && ./build/build.sh
# STEP 2 build the image including only the binary # STEP 2 build the image including only the binary
FROM alpine:3.18.3@sha256:7144f7bab3d4c2648d7e59409f15ec52a18006a128c733fcff20d3a4a54ba44a FROM alpine:3.18.3
RUN apk upgrade --no-cache && apk add libc6-compat device-mapper findutils zfs \ RUN apk upgrade --no-cache && apk add libc6-compat device-mapper findutils zfs \
&& rm -rf /var/cache/apk/* && rm -rf /var/cache/apk/*