Skip to content

Commit bd27b10

Browse files
committed
feat(docker): auto-publish
1 parent 3f152bb commit bd27b10

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/build-docker.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Docker Compose Build and Push
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build_and_push:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Check out the repository, including submodules
14+
uses: actions/checkout@v3
15+
with:
16+
submodules: recursive
17+
path: web
18+
19+
- name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v3
21+
22+
- name: Log in to Docker Hub
23+
uses: docker/login-action@v3
24+
with:
25+
username: ${{ secrets.DOCKER_USERNAME }}
26+
password: ${{ secrets.DOCKER_PASSWORD }}
27+
28+
- name: Build and push Docker images
29+
working-directory: ./web
30+
run: |
31+
npm install
32+
npm run build.docker
33+
docker-compose push

0 commit comments

Comments
 (0)