Skip to content

Commit 9301f8e

Browse files
authored
Merge pull request #1283 from podverse/develop
make closer to example
2 parents a902861 + 604bba2 commit 9301f8e

File tree

1 file changed

+21
-14
lines changed

1 file changed

+21
-14
lines changed

.github/workflows/master.yml

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,46 @@ on:
44
push:
55
branches: [ master ]
66

7-
env:
8-
REGISTRY: podverse
9-
IMAGE_NAME: podverse_web
107

118
jobs:
129
build:
1310
runs-on: ubuntu-latest
1411

1512
steps:
16-
- uses: actions/checkout@v4
13+
-
14+
name: Checkout
15+
uses: actions/checkout@v4
1716

18-
- name: Read node from package.json
17+
-
18+
name: Read node from package.json
1919
uses: culshaw/read-package-node-version-actions@v1
2020
id: package-node-version
2121

22-
- name: send deploying message to Matrix Alerts room
22+
-
23+
name: send deploying message to Matrix Alerts room
2324
uses: s3krit/[email protected]
2425
with:
2526
room_id: ${{ secrets.MATRIX_ALERTS_ROOM_ID }}
2627
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
2728
message: "Deploying podverse-web ${{ steps.package-node-version.outputs.version }} to prod..."
2829
server: ${{ secrets.MATRIX_SERVER }}
2930

30-
- name: Log in to the Container registry
31+
-
32+
name: Login to Docker Hub
3133
uses: docker/login-action@v3
3234
with:
3335
username: ${{ secrets.DOCKER_USERNAME }}
3436
password: ${{ secrets.DOCKER_PASSWORD }}
3537

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

0 commit comments

Comments
 (0)