Improved CI
This commit is contained in:
parent
33718b1162
commit
38e26325e9
18
.github/workflows/docker-image.yml
vendored
18
.github/workflows/docker-image.yml
vendored
@ -1,10 +1,8 @@
|
|||||||
name: Docker Image CI
|
name: Bot Dockerization
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
#pull_request:
|
||||||
branches: [ "master" ]
|
# branches: [ "main" ]
|
||||||
pull_request:
|
|
||||||
branches: [ "master" ]
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DHUB_UNAME: ${{ secrets.DHUB_UNAME }}
|
DHUB_UNAME: ${{ secrets.DHUB_UNAME }}
|
||||||
@ -19,8 +17,14 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Build the Docker image
|
- 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
|
- name: Log into Docker Hub
|
||||||
run: docker login -u $DHUB_UNAME -p $DHUB_PWORD
|
run: docker login -u $DHUB_UNAME -p $DHUB_PWORD
|
||||||
- name: Push image to Docker Hub
|
- 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
|
Loading…
Reference in New Issue
Block a user