Skip to content

Commit 34a37c7

Browse files
committed
chore: add docker workflow
1 parent f88aa22 commit 34a37c7

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/docker.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: build-docker-image
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Docker Buildx
18+
uses: docker/setup-buildx-action@v3
19+
20+
- name: Log in to Docker Hub
21+
uses: docker/login-action@v3
22+
with:
23+
username: ${{ secrets.DOCKER_USERNAME }}
24+
password: ${{ secrets.DOCKER_PASSWORD }}
25+
26+
- name: Build base image
27+
run: bash scripts/build-base-image.sh
28+
29+
- name: Build nginx image
30+
run: bash scripts/build-nginx.sh
31+
32+
- name: Build standalone image
33+
run: bash scripts/build-standalone.sh
34+
35+
- name: Build static image
36+
run: bash scripts/build-static.sh
37+
38+
- name: Push images to Docker Hub
39+
run: bash scripts/push-images.sh

0 commit comments

Comments
 (0)