diff --git a/README.md b/README.md index 261f93bf6c..bb1797151e 100644 --- a/README.md +++ b/README.md @@ -432,7 +432,7 @@ kubectl-1.19 \[frozen\] | 1.19.16 | Production-Grade Container Scheduling and [![sentry-cli](https://github.com/cloudposse/packages/actions/workflows/sentry-cli.yml/badge.svg?branch=master)](https://github.com/cloudposse/packages/actions?query=workflow%3Asentry-cli) | 2.31.0 | A command line utility to work with Sentry. [![shellcheck](https://github.com/cloudposse/packages/actions/workflows/shellcheck.yml/badge.svg?branch=master)](https://github.com/cloudposse/packages/actions?query=workflow%3Ashellcheck) | 0.10.0 | ShellCheck, a static analysis tool for shell scripts [![shfmt](https://github.com/cloudposse/packages/actions/workflows/shfmt.yml/badge.svg?branch=master)](https://github.com/cloudposse/packages/actions?query=workflow%3Ashfmt) | 3.8.0 | A shell parser, formatter and interpreter (POSIX/Bash/mksh) -[![slack-notifier](https://github.com/cloudposse/packages/actions/workflows/slack-notifier.yml/badge.svg?branch=master)](https://github.com/cloudposse/packages/actions?query=workflow%3Aslack-notifier) | 0.8.0 | Command line utility to send messages with attachments to Slack channels via Incoming Webhooks +[![slack-notifier](https://github.com/cloudposse/packages/actions/workflows/slack-notifier.yml/badge.svg?branch=master)](https://github.com/cloudposse/packages/actions?query=workflow%3Aslack-notifier) | 0.9.0 | Command line utility to send messages with attachments to Slack channels via Incoming Webhooks [![sops](https://github.com/cloudposse/packages/actions/workflows/sops.yml/badge.svg?branch=master)](https://github.com/cloudposse/packages/actions?query=workflow%3Asops) | 3.8.1 | Secrets management stinks, use some sops! [![spacectl](https://github.com/cloudposse/packages/actions/workflows/spacectl.yml/badge.svg?branch=master)](https://github.com/cloudposse/packages/actions?query=workflow%3Aspacectl) | 0.30.0 | [Spacelift.io](https://spacelift.io/) client and CLI [![spotctl](https://github.com/cloudposse/packages/actions/workflows/spotctl.yml/badge.svg?branch=master)](https://github.com/cloudposse/packages/actions?query=workflow%3Aspotctl) | 0.35.0 | A unified CLI to manage your [Spot](https://spot.io/) resources. diff --git a/apk/templates/APKBUILD.github-binary b/apk/templates/APKBUILD.github-binary index fb81362487..472f0f96b5 100644 --- a/apk/templates/APKBUILD.github-binary +++ b/apk/templates/APKBUILD.github-binary @@ -35,6 +35,7 @@ source="${DOWNLOAD_URL}" source_filename="$(basename $DOWNLOAD_URL)" unpack() { + echo "Unpack" ## default_unpack does not handle gzipped binaries ## Copy liberally from https://github.com/alpinelinux/abuild/blob/v3.1.0/abuild.in#L403-L442 ## to preserve invariants @@ -129,6 +130,7 @@ prepare() { # This is the compilation stage. # Function will be called as the current user build() { + echo "Build" cd "$builddir" echo "Build dir: ls -l $(pwd)" ls -l $(pwd) @@ -139,12 +141,14 @@ build() { # This function is called right after the build stage. # It should check that the packaged thing is actually working check() { + echo "Check" make -C ${APK_TMP_DIR} --no-print-directory -s test PATH="$PATH:$srcdir" HOME=/tmp } # This is the packaging stage. # The built application and support files should be installed into $pkgdir. package() { + echo "Package" echo "Installing packges to ${pkgdir}" mkdir -p "${pkgdir}/${installdir}" for cmd in ${exe}; do diff --git a/docs/badges.md b/docs/badges.md index 0b5f42cc5d..81a4078a16 100644 --- a/docs/badges.md +++ b/docs/badges.md @@ -105,7 +105,7 @@ kubectl-1.19 \[frozen\] | 1.19.16 | Production-Grade Container Scheduling and [![sentry-cli](https://github.com/cloudposse/packages/actions/workflows/sentry-cli.yml/badge.svg?branch=master)](https://github.com/cloudposse/packages/actions?query=workflow%3Asentry-cli) | 2.31.0 | A command line utility to work with Sentry. [![shellcheck](https://github.com/cloudposse/packages/actions/workflows/shellcheck.yml/badge.svg?branch=master)](https://github.com/cloudposse/packages/actions?query=workflow%3Ashellcheck) | 0.10.0 | ShellCheck, a static analysis tool for shell scripts [![shfmt](https://github.com/cloudposse/packages/actions/workflows/shfmt.yml/badge.svg?branch=master)](https://github.com/cloudposse/packages/actions?query=workflow%3Ashfmt) | 3.8.0 | A shell parser, formatter and interpreter (POSIX/Bash/mksh) -[![slack-notifier](https://github.com/cloudposse/packages/actions/workflows/slack-notifier.yml/badge.svg?branch=master)](https://github.com/cloudposse/packages/actions?query=workflow%3Aslack-notifier) | 0.8.0 | Command line utility to send messages with attachments to Slack channels via Incoming Webhooks +[![slack-notifier](https://github.com/cloudposse/packages/actions/workflows/slack-notifier.yml/badge.svg?branch=master)](https://github.com/cloudposse/packages/actions?query=workflow%3Aslack-notifier) | 0.9.0 | Command line utility to send messages with attachments to Slack channels via Incoming Webhooks [![sops](https://github.com/cloudposse/packages/actions/workflows/sops.yml/badge.svg?branch=master)](https://github.com/cloudposse/packages/actions?query=workflow%3Asops) | 3.8.1 | Secrets management stinks, use some sops! [![spacectl](https://github.com/cloudposse/packages/actions/workflows/spacectl.yml/badge.svg?branch=master)](https://github.com/cloudposse/packages/actions?query=workflow%3Aspacectl) | 0.30.0 | [Spacelift.io](https://spacelift.io/) client and CLI [![spotctl](https://github.com/cloudposse/packages/actions/workflows/spotctl.yml/badge.svg?branch=master)](https://github.com/cloudposse/packages/actions?query=workflow%3Aspotctl) | 0.35.0 | A unified CLI to manage your [Spot](https://spot.io/) resources. diff --git a/docs/targets.md b/docs/targets.md index 38a3a3330a..358ebef6d5 100644 --- a/docs/targets.md +++ b/docs/targets.md @@ -119,7 +119,7 @@ sentinel OBSOLETE Hashicorp sentinel sentry-cli 2.31.0 A command line utility to work with Sentry. shellcheck 0.10.0 ShellCheck, a static analysis tool for shell scripts shfmt 3.8.0 A shell parser, formatter and interpreter (POSIX/Bash/mksh) -slack-notifier 0.8.0 Command line utility to send messages with attachments to Slack channels via Incoming Webhooks +slack-notifier 0.9.0 Command line utility to send messages with attachments to Slack channels via Incoming Webhooks sops 3.8.1 Secrets management stinks, use some sops! spacectl 0.30.0 [Spacelift.io](https://spacelift.io/) client and CLI spotctl 0.35.0 A unified CLI to manage your [Spot](https://spot.io/) resources. diff --git a/vendor/slack-notifier/Makefile b/vendor/slack-notifier/Makefile index 3264471e75..9827240988 100644 --- a/vendor/slack-notifier/Makefile +++ b/vendor/slack-notifier/Makefile @@ -1,16 +1,24 @@ -include ../../tasks/Makefile.vendor_includes # Package details export VENDOR ?= cloudposse -# PACKAGE_VERSION -# https://github.com/cloudposse/slack-notifier/releases/download/0.5.1/slack-notifier_0.5.1_linux_arm64 -export DOWNLOAD_URL ?= $(PACKAGE_REPO_URL)/releases/download/$(PACKAGE_VERSION)/$(PACKAGE_NAME)_$(PACKAGE_VERSION)_$(OS)_$(ARCH) +export PACKAGE_EXE := slack-notifier +export PACKAGE_NAME = slack-notifier +# PACKAGE_URL +# https://github.com/cloudposse/slack-notifier/releases/download/0.9.0/slack-notifier_0.9.0_linux_arm64.zip +export DOWNLOAD_URL = https://github.com/cloudposse/slack-notifier/releases/download/$(PACKAGE_VERSION)/$(PACKAGE_EXE)_$(PACKAGE_VERSION)_$(OS)_$(ARCH).zip export APK_BUILD_TEMPLATE ?= APKBUILD.github-binary export APKBUILD_DEPENDS += libc6-compat +include ../../tasks/Makefile.vendor_includes + +install: export PACKAGE_NAME = slack-notifier_v$(PACKAGE_VERSION) install: echo $(DOWNLOAD_URL) - $(call download_binary) + $(call download_zip) test: ($(PACKAGE_EXE) || true) 2>&1 | grep author_icon +# Custom post-package processing (Note the double colon to append to current inherited package/prepare task) +## This may be required for apk building +package/prepare:: + mv src/$(PACKAGE_NAME)_v$(PACKAGE_VERSION) src/$(PACKAGE_EXE) diff --git a/vendor/slack-notifier/VERSION b/vendor/slack-notifier/VERSION index a3df0a6959..ac39a106c4 100644 --- a/vendor/slack-notifier/VERSION +++ b/vendor/slack-notifier/VERSION @@ -1 +1 @@ -0.8.0 +0.9.0