Skip to content

Commit ab950e5

Browse files
committed
add docker build
1 parent 491eeed commit ab950e5

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Publish Docker image
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
push_to_registry:
10+
name: Push Docker image to Docker Hub
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Check out the repo
14+
uses: actions/checkout@v4
15+
16+
- name: Log in to Docker Hub
17+
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
18+
with:
19+
username: ${{ secrets.DOCKER_USERNAME }}
20+
password: ${{ secrets.DOCKER_PASSWORD }}
21+
22+
- name: Build and push Docker image
23+
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
24+
with:
25+
context: .
26+
file: ./Dockerfile
27+
push: true
28+
tags: forumify/forumify-docs:latest

0 commit comments

Comments
 (0)