From 43413c709f1c16a1c3a38fbd18a70b88d80952e8 Mon Sep 17 00:00:00 2001 From: hunterlong Date: Wed, 22 Apr 2020 00:48:56 -0700 Subject: [PATCH] github actions --- .github/workflows/master.yml | 2 +- Makefile | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 2db8351c..27841c38 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -240,7 +240,7 @@ jobs: - name: Install Libraries run: | sudo apt update - sudo apt install libc-dev gcc-multilib build-essential musl-dev gcc -y + sudo apt install libc-dev gcc-multilib build-essential musl-dev gcc g++ -y - name: Setting ENV's run: | diff --git a/Makefile b/Makefile index 969d5938..859d4f5b 100644 --- a/Makefile +++ b/Makefile @@ -157,7 +157,15 @@ docker-manifest: docker build -t statping/statping:v${VERSION}-$$arch --build-arg VERSION=${VERSION} --build-arg ARCH=$$arch .; \ docker push statping/statping:v${VERSION}-$$arch; \ done - docker manifest create statping/statping:latest statping/statping:v${VERSION}-amd64 statping/statping:v${VERSION}-386 statping/statping:v${VERSION}-arm statping/statping:v${VERSION}-arm64 + docker manifest create statping/statping:v${VERSION} statping/statping:v${VERSION}-amd64 statping/statping:v${VERSION}-386 statping/statping:v${VERSION}-arm statping/statping:v${VERSION}-arm64 + for arch in $(ARCHS);\ + do \ + echo "Docker Manifest v${VERSION} for linux-$$arch"; \ + docker manifest annotate --os linux --arch $$arch statping/statping:v${VERSION}-$$arch; \ + done + docker manifest push statping/statping:v${VERSION} + docker manifest create statping/statping:latest statping/statping:v${VERSION}-amd64 statping/statping:v${VERSION}-386 statping/statping:v${VERSION}-arm statping/statping:v${VERSION}-arm64 + for arch in $(ARCHS);\ do \ echo "Docker Manifest v${VERSION} for linux-$$arch"; \ docker manifest annotate --os linux --arch $$arch statping/statping:v${VERSION}-$$arch; \