silvanus/.github/workflows/docker-image-prod.yml

29 lines
825 B
YAML
Raw Permalink Normal View History

2023-02-17 19:46:41 +00:00
name: Silvanus Production Dockerization
2023-01-18 00:35:24 +00:00
on:
2023-02-20 00:02:55 +00:00
workflow_dispatch:
2023-01-18 00:35:24 +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
2023-01-23 23:03:48 +00:00
run: docker build . --file Dockerfile --tag v0idf1sh/silvanus
2023-01-18 00:35:24 +00:00
- 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
2023-01-23 23:03:48 +00:00
run: docker push v0idf1sh/silvanus
2023-02-10 04:07:42 +00:00
- name: Set up a skeleton .env file
run: echo "TOKEN=${{secrets.PRODTOKEN}}" > .env && echo "clientId=${{ secrets.PRODCLIENTID }}" >> .env
- name: Install modules
run: npm i
- name: Refresh commands with Discord
run: node modules/_deploy-global.js