forked from RandyMcMillan/nostr-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (61 loc) · 2.2 KB
/
gnostr-docker.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
60
61
62
63
64
65
name: gnostr-docker
on:
schedule:
- cron: '0 2 * * *' # run at 2 AM UTC
pull_request:
branches:
- '*'
- '*/*'
- '**'
- 'master'
- 'main'
push:
branches:
- '*'
- '*/*'
- '**'
- 'master'
- 'main'
env:
GIT_DISCOVERY_ACROSS_FILESYSTEM: 1
jobs:
build:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
tag: ["latest", "slim-bullseye"]
runs-on: ${{ matrix.os }}
container: rust:${{ matrix.tag }}
steps:
- run: apt-get update && apt-get install autoconf build-essential curl cmake jq libexpat1-dev libcurl4-openssl-dev libssl-dev libtool lsb-release git make nodejs npm pkg-config python3 python-is-python3 sudo tcl zlib1g-dev -y
## notice: this is a pre checkout step
## notice: additional operations can be done prior to checkout
## - run: apk update && apk add bash cmake git python3 && python3 -m ensurepip
- run: printenv
- name: checkout@v3 fetch-depth submodules set-safe-dir true
uses: actions/checkout@v3
with:
fetch-depth: '100'
submodules: 'true'
set-safe-directory: 'true'
## notice: these are post checkout steps
## - run: apk update && apk add autoconf automake build-base openssl-dev libtool make
- run: touch ~/GITHUB_TOKEN.txt
- run: git config --global --add safe.directory /__w/gnostr/gnostr || true
- run: make run & wait 100 & pkill pnpm #gnostr-proxy
- run: make run-dev #run-dev
- run: make run-production #run-production
- run: make install #install
- run: make report #report
- run: make submodules #submodules
- run: make initialize #initialize
- run: make nvm #nvm
- run: make nvm-clean #nvm-clean
- run: make clean #clean
- run: make push #push.yml
- run: make ubuntu-matrix #ubuntu-matrix
- run: make alpine #alpine act sequence
- run: make install
- run: ls /usr/local/bin
- run: gnostr --sec $(gnostr-sha256) --content "$(gnostr-git show HEAD)" | gnostr-post-event wss://relay.damus.io