Skip to content

Commit 550d2fc

Browse files
committed
chore: convert build
1 parent 7a78d46 commit 550d2fc

2 files changed

Lines changed: 49 additions & 21 deletions

File tree

.drone.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Build and Push Docker Images
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Docker Buildx
18+
uses: docker/setup-buildx-action@v3
19+
20+
- name: Log in to Docker Registry
21+
uses: docker/login-action@v3
22+
with:
23+
registry: registry.v0l.io
24+
username: registry
25+
password: ${{ secrets.REGISTRY_TOKEN }}
26+
27+
- name: Build and push lnvps-api
28+
uses: docker/build-push-action@v5
29+
with:
30+
context: .
31+
file: lnvps_api/Dockerfile
32+
push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
33+
tags: registry.v0l.io/lnvps-api:latest
34+
35+
- name: Build and push lnvps-api-admin
36+
uses: docker/build-push-action@v5
37+
with:
38+
context: .
39+
file: lnvps_api_admin/Dockerfile
40+
push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
41+
tags: registry.v0l.io/lnvps-api-admin:latest
42+
43+
- name: Build and push lnvps-operator
44+
uses: docker/build-push-action@v5
45+
with:
46+
context: .
47+
file: lnvps_operator/Dockerfile
48+
push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
49+
tags: registry.v0l.io/lnvps-operator:latest

0 commit comments

Comments
 (0)