Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/backend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: backend

on:
push:
paths:
- Backend/**

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: ./Backend
file: ./Backend/Dockerfile
push: true
tags: "${{ secrets.DOCKER_USERNAME }}/demo-service:latest"
1 change: 1 addition & 0 deletions Backend/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,6 @@ services:
SERVICE: 5
PORT: 80


networks:
demo-net: {}