Skip to content

Commit 339fb8e

Browse files
committed
github builder
1 parent 9a4c653 commit 339fb8e

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/Builder.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Build and publish
2+
on:
3+
push:
4+
branches: [ "main" ]
5+
workflow_dispatch:
6+
7+
jobs:
8+
build-and-push:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: Log in to Docker Hub
16+
uses: docker/login-action@v3
17+
with:
18+
username: ${{ secrets.DOCKERHUB_USERNAME }}
19+
password: ${{ secrets.DOCKERHUB_TOKEN }}
20+
21+
- name: Build Docker image
22+
run: docker build -t marco1205/bazzar-backend .
23+
24+
- name: Push Docker image
25+
run: docker push marco1205/bazzar-backend

0 commit comments

Comments
 (0)