Update README.md #609
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
if: github.repository_owner == 'FeroxFoxxo' | |
runs-on: [self-hosted, linux] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Build backend | |
run: | | |
cd backend | |
docker build -t ghcr.io/feroxfoxxo/dexter_backend:latest . | |
- name: Push backend | |
run: | | |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u FeroxFoxxo --password-stdin | |
docker push ghcr.io/feroxfoxxo/dexter_backend:latest | |
- name: Build frontend | |
run: | | |
cd frontend | |
docker build -t ghcr.io/feroxfoxxo/dexter_frontend:latest . | |
- name: Push frontend | |
run: | | |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u FeroxFoxxo --password-stdin | |
docker push ghcr.io/feroxfoxxo/dexter_frontend:latest | |
- name: Send discord notification | |
env: | |
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | |
uses: Ilshidur/action-discord@master | |
with: | |
args: "🚀 Published 🚀" |