Skip to content

Commit 0f45a92

Browse files
ci: add Docker CI workflow to build and push image
1 parent 885579b commit 0f45a92

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/docker-image.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Build and Push to Docker Hub
2+
on:
3+
push:
4+
branches: [ "main" ]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout repository
10+
uses: actions/checkout@v4
11+
- name: Log in to Docker Hub
12+
uses: docker/login-action@v3
13+
with:
14+
username: ${{ secrets.DOCKER_USERNAME }}
15+
password: ${{ secrets.DOCKER_PASSWORD }}
16+
- name: Build and push
17+
uses: docker/build-push-action@v5
18+
with:
19+
push: true
20+
tags: vianavitor/slibrarygm-app:latest

0 commit comments

Comments
 (0)