-
Notifications
You must be signed in to change notification settings - Fork 0
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
12 changed files
with
261 additions
and
72 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,54 @@ | ||
name: Build and Push Docker Image | ||
|
||
|
||
on: | ||
push: | ||
branches: | ||
|
||
- Project-Kinma-2 | ||
|
||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
|
||
project: "project-kinma" | ||
architecture: "linux/arm64" | ||
|
||
steps: | ||
|
||
- name: Evaluate Commit Message | ||
run: | | ||
commitMessage="${{ github.event.head_commit.message }}"; | ||
if [ "$commitMessage" != "Update" ]; then | ||
echo "Cancelling Workflow."; | ||
exit 1; | ||
fi | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Setup Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUBUSERNAME }} | ||
password: ${{ secrets.DOCKERHUBTOKEN }} | ||
|
||
- name: Build and Push Docker Image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
push: true | ||
platforms: ${{ env.architecture }} | ||
tags: ${{ secrets.DOCKERHUBUSERNAME }}/${{ env.project }}:latest |
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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
node_modules | ||
.DS_Store | ||
.DS_Store | ||
.vscode | ||
data |
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 @@ | ||
FROM node:18.16.0 | ||
|
||
|
||
ENV tokenOctokit undefined | ||
ENV tokenDiscord undefined | ||
|
||
ENV guildId undefined | ||
ENV channelId undefined | ||
ENV applicationId undefined | ||
|
||
ENV messageDepth undefined | ||
|
||
ENV settingLink undefined | ||
ENV dataFilePath undefined | ||
ENV reposFilePath undefined | ||
ENV settingFilePath undefined | ||
ENV channelsFilePath undefined | ||
|
||
|
||
WORKDIR /app | ||
COPY ./ /app | ||
RUN npm install | ||
|
||
|
||
CMD ["node", "index.js"] |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,9 @@ | ||
{ | ||
"users" : [ | ||
"ala2q6", | ||
"lxRbckl" | ||
], | ||
"channels" : { | ||
"V10" : "1199281939547435030" | ||
} | ||
} |
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
Oops, something went wrong.