Skip to content

Commit aa084e5

Browse files
committed
feat: Added workflow for backend.
1 parent 0d4a081 commit aa084e5

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/backend.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build backend docker images
2+
3+
on:
4+
push:
5+
paths:
6+
- "Server/**"
7+
8+
jobs:
9+
build-image:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: Docker hub login
16+
uses: docker/login-action@v3
17+
with:
18+
username: ${{secrets.DOCKERHUB_USERNAME}}
19+
password: ${{secrets.DOCKERHUB_PASSWORD}}
20+
21+
- name: Set up QEMU
22+
uses: docker/setup-qemu-action@v3
23+
24+
- name: Set up docker buildx
25+
uses: docker/setup-buildx-action@v3
26+
27+
- name: Backend image
28+
uses: docker/build-push-action@v6
29+
with:
30+
context: ./Server
31+
push: true
32+
tags: ${{secrets.DOCKERHUB_USERNAME}}/uniprep-backend:latest

0 commit comments

Comments
 (0)