File tree Expand file tree Collapse file tree 1 file changed +21
-14
lines changed Expand file tree Collapse file tree 1 file changed +21
-14
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches : [ master ]
6
6
7
- env :
8
- REGISTRY : podverse
9
- IMAGE_NAME : podverse_web
10
7
11
8
jobs :
12
9
build :
13
10
runs-on : ubuntu-latest
14
11
15
12
steps :
16
- - uses : actions/checkout@v4
13
+ -
14
+ name : Checkout
15
+ uses : actions/checkout@v4
17
16
18
- - name : Read node from package.json
17
+ -
18
+ name : Read node from package.json
19
19
uses : culshaw/read-package-node-version-actions@v1
20
20
id : package-node-version
21
21
22
- - name : send deploying message to Matrix Alerts room
22
+ -
23
+ name : send deploying message to Matrix Alerts room
23
24
24
25
with :
25
26
room_id : ${{ secrets.MATRIX_ALERTS_ROOM_ID }}
26
27
access_token : ${{ secrets.MATRIX_ACCESS_TOKEN }}
27
28
message : " Deploying podverse-web ${{ steps.package-node-version.outputs.version }} to prod..."
28
29
server : ${{ secrets.MATRIX_SERVER }}
29
30
30
- - name : Log in to the Container registry
31
+ -
32
+ name : Login to Docker Hub
31
33
uses : docker/login-action@v3
32
34
with :
33
35
username : ${{ secrets.DOCKER_USERNAME }}
34
36
password : ${{ secrets.DOCKER_PASSWORD }}
35
37
36
- - name : build and push docker image
37
- id : push
38
- uses : docker/build-push-action@v5
39
- with :
40
- context : .
41
- push : true
42
- tags : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest,${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.package-node-version.outputs.version }}
38
+ -
39
+ name : Set up Docker Buildx
40
+ uses : docker/setup-buildx-action@v3
41
+
42
+ -
43
+ name : Build and push
44
+ uses : docker/build-push-action@v5
45
+ with :
46
+ context : .
47
+ file : ./Dockerfile
48
+ push : true
49
+ tags : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
You can’t perform that action at this time.
0 commit comments