Skip to content

Commit 88026ef

Browse files
authored
Impl docker deploy workflow
1 parent 47022a4 commit 88026ef

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/docker-publish.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: build and push docker image
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
jobs:
8+
build-and-push:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: checkout
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_SECRET_TOKEN }}
20+
21+
- name: build and push
22+
uses: docker/build-push-action@v5
23+
with:
24+
context: .
25+
push: true
26+
tags: roguepaws/nginx-spa:latest

0 commit comments

Comments
 (0)