Feat: Backend docker CI #4
Workflow file for this run
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: Build Backend Docker Image | |
on: [push, pull_request] | |
jobs: | |
build-backend-docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build image | |
uses: docker/build-push-action@v2 | |
with: | |
context: backend | |
file: backend/Dockerfile | |
push: false | |
tags: ${{ secrets.DOCKERHUB_USERNAME }} | |
# TODO: Deploy action on self-hosted VM | |
# TODO: Add secrets |