Skip to content

Commit 03684f0

Browse files
authored
Create deploy.yml
1 parent 0b2046e commit 03684f0

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- development
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
test:
15+
name: Testing files
16+
timeout-minutes: 30
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v3
21+
- name: Building Docker Image
22+
run: docker build -t ${{ secrets.username }}/erp-backend:prod .
23+
- name: DockerHub Login
24+
run: docker login -u ${{ secrets.username }} -p ${{ secrets.pass }}
25+
- name: Uploading Image to DockerHub
26+
run: docker push ${{ secrets.username }}/erp-backend:prod

0 commit comments

Comments
 (0)