Skip to content

Commit 90a563e

Browse files
Add deploy actions pipeline
1 parent c9c0540 commit 90a563e

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/deploy.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Deploy
2+
on:
3+
release:
4+
types: [released]
5+
6+
jobs:
7+
test:
8+
uses: ./.github/workflows/node.yml
9+
lint:
10+
uses: ./.github/workflows/node.yml
11+
build:
12+
runs-on: ubuntu-latest
13+
container: node:20-slim
14+
needs: [test, lint]
15+
16+
steps:
17+
- name: Checkout the repository
18+
uses: actions/checkout@v4
19+
- name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v3
21+
- name: Login to container registry
22+
uses: docker/login-action@v3
23+
with:
24+
registry: ${{secrets.REGISTRY_URL}}
25+
username: ${{secrets.REGISTRY_USERNAME}}
26+
password: ${{secrets.REGISTRY_PASSWORD}}
27+
- name: Build and push
28+
uses: docker/build-push-action@v6
29+
with:
30+
push: true
31+
tags: rv-backend:latest
32+

.github/workflows/node.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Build
22

33
on:
4+
workflow_call:
45
push:
56
branches: [develop, master]
67
pull_request:

0 commit comments

Comments
 (0)