File tree 1 file changed +45
-0
lines changed
1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and Push Docker Image
2
+ on :
3
+ push :
4
+ branches :
5
+ - dev/*
6
+ pull_request :
7
+ branches :
8
+ - main
9
+
10
+ jobs :
11
+ build :
12
+ runs-on : ubuntu-latest
13
+
14
+ strategy :
15
+ matrix :
16
+ node-version : [ 18.x ]
17
+ image-name : [ chrisgray0626/gis-agent-frontend ]
18
+ image-tag : [ 0.1 ]
19
+
20
+ steps :
21
+ - name : Checkout
22
+ uses : actions/checkout@v4
23
+ - uses : actions/setup-node@v4
24
+ with :
25
+ node-version : ${{ matrix.node-version }}
26
+ cache : ' yarn'
27
+ - run : yarn install
28
+ - run : yarn build
29
+ - name : Set up QEMU
30
+ uses : docker/setup-qemu-action@v3
31
+ - name : Set up Docker Buildx
32
+ uses : docker/setup-buildx-action@v3
33
+ - name : Login to Docker Hub
34
+ uses : docker/login-action@v3
35
+ with :
36
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
37
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
38
+ - name : Build and push
39
+ uses : docker/build-push-action@v5
40
+ with :
41
+ context : .
42
+ push : true
43
+ tags : ${{ matrix.image-name }}:latest, ${{ matrix.image-name }}:${{ matrix.image-tag }}
44
+ cache-from : type=gha
45
+ cache-to : type=gha,mode=max
You can’t perform that action at this time.
0 commit comments