-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
281 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: install docker emulation | ||
run: docker run --rm --privileged tonistiigi/binfmt:latest --install amd64,arm64 | ||
- name: Set up buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Login to ghcr.io | ||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | ||
- name: Build and push | ||
run: | | ||
docker buildx build --platform linux/amd64,linux/arm64 -t $(echo 'ghcr.io/${{ github.repository }}:${{ github.ref_name }}' | tr '[:upper:]' '[:lower:]') --push . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,28 @@ name: 'Slack Notify' | |
description: 'This action will send a notification to Slack' | ||
author: 'rtCamp' | ||
runs: | ||
using: 'docker' | ||
image: 'docker://ghcr.io/rtcamp/action-slack-notify:v2.2.0' | ||
using: 'composite' | ||
steps: | ||
- name: "Slack-Markdown Conversion" | ||
if: env.SLACKIFY_MARKDOWN == 'true' | ||
id: slackify | ||
uses: LoveToKnow/[email protected] | ||
with: | ||
text: ${{ env.SLACK_MESSAGE }} | ||
|
||
- name: "Slack Notification (Formatted)" | ||
if: env.SLACKIFY_MARKDOWN == 'true' | ||
env: | ||
SLACK_MESSAGE: "${{ steps.slackify.outputs.text }}" | ||
GITHUB_RUN: "${{ github.event.repository.html_url }}/actions/runs/${{ github.run_id }}" | ||
ENABLE_ESCAPES: "true" | ||
uses: "docker://ghcr.io/rtcamp/action-slack-notify:v2.2.1" | ||
|
||
- name: "Slack Notification (Unformatted)" | ||
if: env.SLACKIFY_MARKDOWN != 'true' | ||
uses: "docker://ghcr.io/rtcamp/action-slack-notify:v2.2.1" | ||
env: | ||
GITHUB_RUN: "${{ github.event.repository.html_url }}/actions/runs/${{ github.run_id }}" | ||
branding: | ||
icon: 'bell' | ||
color: 'yellow' | ||
color: 'yellow' |
Oops, something went wrong.