-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (52 loc) · 1.77 KB
/
main.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: lndata main pipeline
on:
push:
branches:
- master
jobs:
release-build-docker-image:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- uses: pmorelli92/[email protected]
name: Build and Publish lndata-build-env:latest
with:
github-push-secret: ${{secrets.GITHUB_TOKEN}}
docker-image-name: lndata-build-env
docker-image-tag: latest
dockerfile-path: ./docker/build/Dockerfile
build-context: ./docker/build
update-lndata-go:
runs-on: ubuntu-latest
needs: ["release-build-docker-image"]
steps:
- name: Login to GitHub Packages Docker Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{github.repository_owner}}
password: ${{secrets.GHCR_TOKEN}}
- name: Check out Git repository
uses: actions/checkout@v3
- name: Build *pb.go
uses: addnab/docker-run-action@v3
with:
username: ${{github.repository_owner}}
password: ${{secrets.GHCR_TOKEN}}
registry: ghcr.io
image: ghcr.io/c13n-io/lndata-build-env:latest
options: -v ${{ github.workspace }}:/build
run: |
echo "Running Script"
./build_lndata.sh
- name: Update lndata-go repository
uses: cpina/[email protected]
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source-directory: 'artifacts/go'
destination-github-username: 'c13n-io'
destination-repository-name: 'lndata-go'
user-email: [email protected]
target-branch: master