Skip to content

Commit

Permalink
remove unneeded dockerfiles and scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasferrandiz committed Nov 29, 2023
1 parent bc3fcc3 commit e226990
Show file tree
Hide file tree
Showing 15 changed files with 6 additions and 110 deletions.
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ on:

env:
GO_VERSION: "1.20.5"
LINUX_ARCHES: "amd64 386 arm arm64 s390x mips64le ppc64le"
REPOSITORY: flannel/flannel-cni-plugin

jobs:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ RUN go mod vendor && go mod tidy

# for ARCH IN ${ALL_ARCH}; do
RUN \
for arch in amd64 386 arm arm64 s390x mips64le ppc64le riscv64; do \
for arch in amd64 386 arm arm64 s390x ppc64le riscv64; do \
GOARCH=${arch} ./scripts/build_flannel.sh; \
for format in tgz; do \
FILENAME=cni-plugin-flannel-linux-${arch}-${TAG}.${format}; \
Expand All @@ -60,7 +60,7 @@ RUN \
done

RUN \
for arch in amd64 386 arm arm64 s390x mips64le ppc64le riscv64; do \
for arch in amd64 386 arm arm64 s390x ppc64le riscv64; do \
GOARCH=${arch} ./scripts/check_static.sh >> static-check.log; \
done

Expand Down
2 changes: 0 additions & 2 deletions Dockerfile.amd64

This file was deleted.

2 changes: 0 additions & 2 deletions Dockerfile.arm

This file was deleted.

2 changes: 0 additions & 2 deletions Dockerfile.arm64

This file was deleted.

7 changes: 0 additions & 7 deletions Dockerfile.linux

This file was deleted.

2 changes: 0 additions & 2 deletions Dockerfile.mips64le

This file was deleted.

2 changes: 0 additions & 2 deletions Dockerfile.ppc64le

This file was deleted.

2 changes: 0 additions & 2 deletions Dockerfile.riscv64

This file was deleted.

2 changes: 0 additions & 2 deletions Dockerfile.s390x

This file was deleted.

6 changes: 0 additions & 6 deletions Dockerfile.windows

This file was deleted.

13 changes: 0 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,9 @@ build_all_linux: vendor
GOOS=linux GOARCH=arm scripts/build_flannel.sh
GOOS=linux GOARCH=arm64 scripts/build_flannel.sh
GOOS=linux GOARCH=s390x scripts/build_flannel.sh
GOOS=linux GOARCH=mips64le scripts/build_flannel.sh
GOOS=linux GOARCH=ppc64le scripts/build_flannel.sh
GOOS=linux GOARCH=riscv64 scripts/build_flannel.sh


build_all_linux_for_images: vendor
GOOS=linux GOARCH=amd64 scripts/build_flannel_for_images.sh
GOOS=linux GOARCH=386 scripts/build_flannel_for_images.sh
GOOS=linux GOARCH=arm scripts/build_flannel_for_images.sh
GOOS=linux GOARCH=arm64 scripts/build_flannel_for_images.sh
GOOS=linux GOARCH=s390x scripts/build_flannel_for_images.sh
GOOS=linux GOARCH=mips64le scripts/build_flannel_for_images.sh
GOOS=linux GOARCH=ppc64le scripts/build_flannel_for_images.sh
GOOS=linux GOARCH=riscv64 scripts/build_flannel_for_images.sh


vendor:
go mod tidy
go mod vendor
Expand Down
63 changes: 0 additions & 63 deletions scripts/build_flannel_for_images.sh

This file was deleted.

4 changes: 2 additions & 2 deletions scripts/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ mkdir -p dist
umask 0022

# linux archives
for arch in amd64 386 arm arm64 s390x mips64le ppc64le riscv64; do
for arch in amd64 386 arm arm64 s390x ppc64le riscv64; do
echo $arch
for format in tgz; do
FILENAME=cni-plugin-flannel-linux-$arch-"${TAG}".$format
Expand All @@ -25,7 +25,7 @@ tar -C "${OUTPUT_DIR}" --owner=0 --group=0 -caf "$FILEPATH" flannel-amd64.exe

cd "${SRC_DIR}"
# linux
for arch in amd64 386 arm arm64 s390x mips64le ppc64le riscv64; do
for arch in amd64 386 arm arm64 s390x ppc64le riscv64; do
GOOS=${GOOS:-$("${GO}" env GOOS)}
RELEASE_DIR=release \
OUTPUT_DIR=dist \
Expand Down
4 changes: 2 additions & 2 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ $DOCKER run -ti -v "${SRC_DIR}":z -e TAG="${TAG}" --rm golang:"${GOLANG_VERSION}
go mod vendor && go mod tidy
for arch in amd64 386 arm arm64 s390x mips64le ppc64le riscv64; do \
for arch in amd64 386 arm arm64 s390x ppc64le riscv64; do \
echo \$arch;\
GOARCH=\$arch ./scripts/build_flannel.sh; \
for format in tgz; do \
Expand All @@ -47,7 +47,7 @@ $DOCKER run -ti -v "${SRC_DIR}":z -e TAG="${TAG}" --rm golang:"${GOLANG_VERSION}
tar -C ${OUTPUT_DIR} --owner=0 --group=0 -caf \$FILEPATH . ; \
done;
for arch in amd64 386 arm arm64 s390x mips64le ppc64le riscv64; do \
for arch in amd64 386 arm arm64 s390x ppc64le riscv64; do \
GOARCH=\$arch ./scripts/check_static.sh >> static-check.log; \
done;
Expand Down

0 comments on commit e226990

Please sign in to comment.