File tree Expand file tree Collapse file tree 2 files changed +17
-10
lines changed Expand file tree Collapse file tree 2 files changed +17
-10
lines changed Original file line number Diff line number Diff line change 12
12
jobs :
13
13
build-and-push :
14
14
runs-on : ubuntu-latest
15
- strategy :
16
- matrix :
17
- component : [server, client]
18
15
19
16
steps :
20
17
- name : Checkout code
@@ -31,12 +28,10 @@ jobs:
31
28
password : ${{ secrets.GITHUB_TOKEN }}
32
29
33
30
- name : Build and tag the Docker image
34
- run : |
35
- docker build . -f Dockerfile.${{ matrix.component }} \
36
- -t ghcr.io/${{ github.repository }}/${{ matrix.component }}:${{ github.sha }} \
37
- -t ghcr.io/${{ github.repository }}/${{ matrix.component }}:latest
31
+ run : make build-images
32
+
33
+ - name : tag images
34
+ run : make tag-images
38
35
39
36
- name : Push Docker images to GitHub Packages
40
- run : |
41
- docker push ghcr.io/${{ github.repository }}/${{ matrix.component }}:${{ github.sha }}
42
- docker push ghcr.io/${{ github.repository }}/${{ matrix.component }}:latest
37
+ run : make push-images
Original file line number Diff line number Diff line change 19
19
- name : Run tests
20
20
run : make test
21
21
22
+ docker :
23
+ runs-on : ubuntu-latest
24
+
25
+ steps :
26
+ - name : Checkout code
27
+ uses : actions/checkout@v2
28
+
29
+ - name : Set up Docker Buildx
30
+ uses : docker/setup-buildx-action@v1
31
+
32
+ - name : Build and tag the Docker image
33
+ run : make build-images
You can’t perform that action at this time.
0 commit comments