generated from LontriTech/template-basic
-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
9bd3e2c
commit f81fbf6
Showing
5 changed files
with
117 additions
and
6 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
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,21 @@ | ||
# Stage 1: Build App | ||
FROM golang:1.23-bookworm AS build | ||
|
||
WORKDIR /app | ||
|
||
COPY go.mod go.sum Makefile ./ | ||
|
||
RUN make deps | ||
|
||
COPY . . | ||
|
||
RUN make build | ||
|
||
# Stage 2: Run App | ||
FROM debian:bookworm-slim AS runtime | ||
|
||
WORKDIR /app | ||
|
||
COPY --from=build /app/dist/app . | ||
|
||
ENTRYPOINT ["./app"] |
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
name: 'Discord Community Scaffolder' | ||
description: 'Creates Discord Community Channels and Categories based on configuration file.' | ||
author: 'OLeonardoRodrigues 84041478+OLeonardoRodrigues@users.noreply.github.com' | ||
|
||
branding: | ||
color: 'blue' | ||
icon: 'disc' | ||
|
||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' | ||
|
||
inputs: | ||
bot-token: | ||
description: 'Bot Token for interactions with Discord Community. More info: https://discord.com/developers/docs/topics/oauth2#bot-users' | ||
required: true | ||
|
||
guild-id: | ||
description: 'Discord Guild ID. (Guild ID is the same as Community ID or Server ID) More info: https://discord.com/developers/docs/resources/guild' | ||
required: true | ||
|
||
config-path: | ||
description: 'Path to the configuration YAML file.' | ||
required: false | ||
default: ".discord-scaffolder.yaml" | ||
|
||
env: | ||
SCAFFOLDER_DISCORD_BOT_TOKEN: ${{ inputs.bot-token }} | ||
|
||
SCAFFOLDER_DISCORD_GUILD_ID: ${{ inputs.guild-id }} | ||
|
||
SCAFFOLDER_CONFIG_FILE: ${{ inputs.config-path }} |
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