Improved CI

This commit is contained in:
Skylar Grant 2023-02-10 20:19:30 -05:00 committed by GitHub
parent 33718b1162
commit 38e26325e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,10 +1,8 @@
name: Docker Image CI
name: Bot Dockerization
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
#pull_request:
# branches: [ "main" ]
env:
DHUB_UNAME: ${{ secrets.DHUB_UNAME }}
@ -19,8 +17,14 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag v0idf1sh/treeanalyzer
run: docker build . --file Dockerfile --tag v0idf1sh/tag
- name: Log into Docker Hub
run: docker login -u $DHUB_UNAME -p $DHUB_PWORD
- name: Push image to Docker Hub
run: docker push v0idf1sh/treeanalyzer
run: docker push v0idf1sh/tag
- name: Set up a skeleton .env file
run: echo "TOKEN=${{secrets.TOKEN}}" > .env && echo "BOTID=${{ secrets.BOTID }}" >> .env
- name: Install modules
run: npm i
- name: Refresh commands with Discord
run: node modules/_deploy-global.js