mirror of
https://github.com/Technicolor-creamsicle/Osselbot.git
synced 2025-10-20 20:54:07 -04:00
Compare commits
5 Commits
v2.0.2
...
2.0.2-alph
Author | SHA1 | Date | |
---|---|---|---|
3f9532cf56 | |||
91f4c849eb | |||
b0d6c6490e | |||
dac06d57e1 | |||
6732fe4db5 |
17
.github/workflows/dockerimage.yml
vendored
17
.github/workflows/dockerimage.yml
vendored
@@ -1,17 +0,0 @@
|
||||
name: Docker Image CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build the Docker image
|
||||
run: docker build . --file Dockerfile --tag osselbot:$(date +%s)
|
20
.github/workflows/dockerpub.yml
vendored
20
.github/workflows/dockerpub.yml
vendored
@@ -1,20 +0,0 @@
|
||||
name: Publish Docker image
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
push_to_registry:
|
||||
name: Push Docker image to GitHub Packages
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
uses: actions/checkout@v2
|
||||
- name: Push to GitHub Packages
|
||||
uses: docker/build-push-action@v1
|
||||
with:
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
registry: docker.pkg.github.com
|
||||
repository: techniclor-creamsicle/osselbot/osselbot
|
||||
tag_with_ref: true
|
20
.github/workflows/dockerpub3.yml
vendored
20
.github/workflows/dockerpub3.yml
vendored
@@ -1,20 +0,0 @@
|
||||
name: Publish Docker image
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
push_to_registry:
|
||||
name: Push Docker image to GitHub Packages
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
uses: actions/checkout@v2
|
||||
- name: Push to GitHub Packages
|
||||
uses: docker/build-push-action@v1
|
||||
with:
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
registry: docker.pkg.github.com
|
||||
repository: techniclor-creamsicle/osselbot/osselbot
|
||||
tag_with_ref: true
|
17
Dockerfile
17
Dockerfile
@@ -1,17 +0,0 @@
|
||||
# Use the official image as a parent image.
|
||||
FROM node:current-slim
|
||||
|
||||
# Set the working directory.
|
||||
WORKDIR ./DOCKER
|
||||
|
||||
# Copy the file from your host to your current location.
|
||||
COPY ./package.json .
|
||||
COPY ./package-lock.json .
|
||||
# Run the command inside your image filesystem.
|
||||
RUN npm install
|
||||
|
||||
# Run the specified command within the container.
|
||||
CMD [ "npm", "start" ]
|
||||
|
||||
# Copy the rest of your app's source code from your host to your image filesystem.
|
||||
COPY ./src/ .
|
8
build.sh
8
build.sh
@@ -1,10 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
#logs in as Alex
|
||||
cat ~/.GHTOKEN | docker login https://docker.pkg.github.com -u technicolor-creamsicle --password-stdin
|
||||
#Builds the package
|
||||
docker build --tag osselbot .
|
||||
#pushes to github
|
||||
docker tag osselbot:latest docker.pkg.github.com/techniclor-creamsicle/osselbot/osselbot:$1
|
||||
docker push docker.pkg.github.com/techniclor-creamsicle/osselbot/osselbot:$1
|
||||
|
||||
echo build may have passed using version: $1
|
||||
|
2
package-lock.json → npm-shrinkwrap.json
generated
2
package-lock.json → npm-shrinkwrap.json
generated
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "osselbot",
|
||||
"name": "@technicolor-creamsicle/osselbot",
|
||||
"version": "1.1.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
54
package.json
54
package.json
@@ -1,26 +1,32 @@
|
||||
{
|
||||
"name": "osselbot",
|
||||
"version": "1.1.0",
|
||||
"description": "Discordbot on Discord.js",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"discord.js": "^12.1.1",
|
||||
"n": "^6.4.0",
|
||||
"pretty-ms": "^6.0.1"
|
||||
},
|
||||
"devDependencies": {},
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"start": "node ./index.js"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/Technicolor-creamsicle/Osselbot.git"
|
||||
},
|
||||
"author": "Alex Technicolor <technicolor@2a03.party> (http://technicolor.2a03.party)",
|
||||
"license": "SEE LICENSE IN LICENCE",
|
||||
"bugs": {
|
||||
"url": "https://github.com/Technicolor-creamsicle/Osselbot/issues"
|
||||
},
|
||||
"homepage": "https://technicolor.2a03.party/bot"
|
||||
"name": "@technicolor-creamsicle/osselbot",
|
||||
"version": "2.0.2-alpha",
|
||||
"description": "A discord bot on Discord.js",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"discord.js": "^12.1.1",
|
||||
"n": "^6.4.0",
|
||||
"pretty-ms": "^6.0.1"
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "https://npm.pkg.github.com/"
|
||||
},
|
||||
"files": [
|
||||
"./src"
|
||||
],
|
||||
"devDependencies": {},
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"start": "npm install; node ./src/index.js"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/Technicolor-creamsicle/Osselbot.git"
|
||||
},
|
||||
"author": "Alex Technicolor <technicolor@2a03.party> (http://technicolor.2a03.party)",
|
||||
"license": "SEE LICENSE IN LICENCE",
|
||||
"bugs": {
|
||||
"url": "https://github.com/Technicolor-creamsicle/Osselbot/issues"
|
||||
},
|
||||
"homepage": "https://technicolor.2a03.party/bot"
|
||||
}
|
||||
|
Reference in New Issue
Block a user