Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

config: push webhook on image build

Manuel74e1ad2f00a6
diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml
index 8f1e8204a..424e7be9d 100644
--- a/.github/workflows/docker-image.yml
+++ b/.github/workflows/docker-image.yml
@@ -55,6 +55,12 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: false
DRY_RUN: true
+ - name: Discord notification
+ env:
+ DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
+ uses: Ilshidur/action-discord@master
+ with:
+ args: 'Image has been tagged as ${{ steps.githubTagAction.outputs.new_tag }}'
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
@@ -62,4 +68,22 @@ jobs:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=latest
- type=raw,value=${{ steps.githubTagAction.outputs.new_tag }}
\ No newline at end of file
+ type=raw,value=${{ steps.githubTagAction.outputs.new_tag }}
+ - name: Build and push
+ id: buildPushAction
+ uses: docker/build-push-action@v4
+ with:
+ platforms: linux/amd64,linux/arm64,linux/riscv64,linux/arm/v7,linux/arm/v6
+ context: .
+ push: false
+ tags: ${{ steps.meta.outputs.tags }}
+ labels: ${{ steps.meta.outputs.labels }}
+ cache-from: type=gha
+ cache-to: type=gha,mode=max
+ network: host
+ - name: Discord notification
+ env:
+ DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
+ uses: Ilshidur/action-discord@master
+ with:
+ args: 'Image built with ID ${{ steps.buildPushAction.outputs.imageid }}'