2023-02-01 03:51:10 +00:00
|
|
|
name: Silvanus-Dev Dockerization
|
|
|
|
|
|
|
|
on:
|
2023-02-19 19:29:59 +00:00
|
|
|
workflow_dispatch:
|
2023-02-01 03:51:10 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
DHUB_UNAME: ${{ secrets.DHUB_UNAME }}
|
|
|
|
DHUB_PWORD: ${{ secrets.DHUB_PWORD }}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-02-17 19:46:41 +00:00
|
|
|
- name: Build the Docker image v0idf1sh/silvanus-dev
|
2023-02-10 03:55:02 +00:00
|
|
|
run: docker build . --file Dockerfile --tag v0idf1sh/silvanus-dev
|
|
|
|
- name: Log into Docker Hub
|
|
|
|
run: docker login -u $DHUB_UNAME -p $DHUB_PWORD
|
2023-02-17 19:46:41 +00:00
|
|
|
- name: Push image to Docker Hub v0idf1sh/silvanus-dev
|
2023-02-10 03:55:02 +00:00
|
|
|
run: docker push v0idf1sh/silvanus-dev
|
2023-02-10 03:14:18 +00:00
|
|
|
- name: Set up a skeleton .env file
|
2023-02-12 05:00:30 +00:00
|
|
|
run: echo "TOKEN=${{secrets.DEVTOKEN}}" > .env && echo "BOTID=${{ secrets.CLIENTID }}" >> .env
|
2023-02-10 03:27:03 +00:00
|
|
|
- name: Install modules
|
|
|
|
run: npm i
|
2023-02-10 03:14:18 +00:00
|
|
|
- name: Refresh commands with Discord
|
2023-02-10 03:24:24 +00:00
|
|
|
run: node modules/_deploy-global.js
|