This repository has been archived by the owner on Dec 3, 2024. It is now read-only.
forked from Darkside138/DiscordSoundboard
-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (59 loc) · 2.48 KB
/
version.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Docker Version Release
on:
create:
tags:
- v*
jobs:
docker-version:
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@master
with:
platforms: all
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
context: ./
file: ./Dockerfile
platforms: linux/amd64
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/discordsoundboard:${{ steps.get_version.outputs.VERSION }}
- name: Discord Soundboard Notification
uses: meisnate12/discord-notifications@master
if: success()
with:
webhook_id: ${{ secrets.BUILD_WEBHOOK_ID }}
webhook_token: ${{ secrets.BUILD_WEBHOOK_TOKEN }}
title: "Docker Image ${{ steps.get_version.outputs.VERSION }} build: **Success**"
url: https://github.com/Darkside138/DiscordSoundboard/actions/runs/${{ github.run_id }}
username: Docker Release Notifier
avatar_url: https://raw.githubusercontent.com/Darkside138/DiscordSoundboard/master/distFiles/avatar.jpg
author: Docker
author_icon_url: https://raw.githubusercontent.com/Darkside138/DiscordSoundboard/master/.github/docker.png
- name: Discord Soundboard Notification
uses: meisnate12/discord-notifications@master
if: success()
with:
webhook_id: ${{ secrets.BUILD_WEBHOOK_ID }}
webhook_token: ${{ secrets.BUILD_WEBHOOK_TOKEN }}
title: "Discord Soundboard ${{ steps.get_version.outputs.VERSION }} Released"
url: https://github.com/Darkside138/DiscordSoundboard/releases/tag/${{ steps.get_version.outputs.VERSION }}
username: Release Notifier
avatar_url: https://raw.githubusercontent.com/Darkside138/DiscordSoundboard/master/distFiles/avatar.jpg
author: Discord Soundboard
author_icon_url: https://raw.githubusercontent.com/Darkside138/DiscordSoundboard/master/distFiles/avatar.jpg