2023-02-01 03:51:10 +00:00
|
|
|
name: Silvanus-Dev Dockerization
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "*-dev" ]
|
|
|
|
|
|
|
|
env:
|
|
|
|
DHUB_UNAME: ${{ secrets.DHUB_UNAME }}
|
|
|
|
DHUB_PWORD: ${{ secrets.DHUB_PWORD }}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Build the Docker image
|
|
|
|
run: docker build . --file Dockerfile --tag v0idf1sh/silvanus-dev
|
|
|
|
- name: Log into Docker Hub
|
|
|
|
run: docker login -u $DHUB_UNAME -p $DHUB_PWORD
|
|
|
|
- name: Push image to Docker Hub
|
|
|
|
run: docker push v0idf1sh/silvanus-dev
|
2023-02-10 03:14:18 +00:00
|
|
|
- name: Set up a skeleton .env file
|
2023-02-10 03:19:46 +00:00
|
|
|
run: echo "TOKEN=${{secrets.DEVTOKEN}} clientId=${{ secrets.clientId }}" > .env
|
2023-02-10 03:14:18 +00:00
|
|
|
- name: Refresh commands with Discord
|
|
|
|
run: node _modules/_deploy-global.js
|