We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f152bb commit bd27b10Copy full SHA for bd27b10
.github/workflows/build-docker.yml
@@ -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
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