diff --git a/.github/scripts/plugin-manifest.sh b/.github/scripts/plugin-manifest.sh old mode 100644 new mode 100755 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 70571db..9410426 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -50,6 +50,7 @@ jobs: push: true tags: ${{ steps.docker-metadata.outputs.tags }} labels: ${{ steps.docker-metadata.outputs.labels }} + platforms: linux/amd64,linux/arm64 build-cli-and-manifests: name: Build the CLI binaries and manifests @@ -65,6 +66,7 @@ jobs: run: | VERSION="$GITHUB_REF_NAME" make ci-build-cli mkdir release + .github/scripts/plugin-manifest.sh mv _output/* release - name: Get version from tag diff --git a/Makefile b/Makefile index ffc869c..ba0d6dc 100644 --- a/Makefile +++ b/Makefile @@ -43,6 +43,6 @@ ci-build-cli: clean cd ./ndc-rest-schema && \ go get github.com/mitchellh/gox && \ go run github.com/mitchellh/gox -ldflags '-X github.com/hasura/ndc-rest/ndc-rest-schema/version.BuildVersion=$(VERSION) -s -w -extldflags "-static"' \ - -osarch="linux/amd64 darwin/amd64 windows/amd64 darwin/arm64" \ + -osarch="linux/amd64 darwin/amd64 windows/amd64 darwin/arm64 linux/arm64" \ -output="../$(OUTPUT_DIR)/ndc-rest-schema-{{.OS}}-{{.Arch}}" \ . \ No newline at end of file diff --git a/scripts/build-manifest.sh b/scripts/build-manifest.sh index 59d079b..3327163 100755 --- a/scripts/build-manifest.sh +++ b/scripts/build-manifest.sh @@ -11,7 +11,6 @@ mkdir -p $BUILD_DIR cp -r connector-definition $BUILD_DIR sed -i "s/{{VERSION}}/$VERSION/g" $BUILD_DIR/connector-definition/.hasura-connector/connector-metadata.yaml -sed -i "s/{{VERSION}}/$VERSION/g" $BUILD_DIR/connector-definition/.hasura-connector/Dockerfile mkdir -p "${ROOT}/release" tar -czvf "${ROOT}/release/connector-definition.tgz" --directory $BUILD_DIR/connector-definition .