-
Notifications
You must be signed in to change notification settings - Fork 30
42 lines (34 loc) · 1.13 KB
/
master.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: master-branch
on:
push:
branches: [ master ]
env:
REGISTRY: podverse
IMAGE_NAME: podverse_web
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Read node from package.json
uses: culshaw/read-package-node-version-actions@v1
id: package-node-version
- name: send deploying message to Matrix Alerts room
uses: s3krit/[email protected]
with:
room_id: ${{ secrets.MATRIX_ALERTS_ROOM_ID }}
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
message: "Deploying podverse-web ${{ steps.package-node-version.outputs.version }} to prod..."
server: ${{ secrets.MATRIX_SERVER }}
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: build and push docker image
id: push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest,${{ steps.package-node-version.outputs.version }}