Skip to content

Commit

Permalink
Update slack-notifier to 0.9.0 (#4609)
Browse files Browse the repository at this point in the history
Co-authored-by: Nuru <[email protected]>
  • Loading branch information
cloudpossebot and Nuru authored Apr 25, 2024
1 parent ff07224 commit cc39d3d
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 4 additions & 0 deletions apk/templates/APKBUILD.github-binary
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/badges.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docs/targets.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
18 changes: 13 additions & 5 deletions vendor/slack-notifier/Makefile
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 1 addition & 1 deletion vendor/slack-notifier/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.8.0
0.9.0

0 comments on commit cc39d3d

Please sign in to comment.