Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move CI to GH actions #219

Merged
merged 59 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
ee3f350
buf build works
labkode Nov 14, 2023
66aa9e2
build with buf instead prototool
labkode Nov 14, 2023
0f44563
add buf.md
labkode Nov 14, 2023
3b3d02d
labkode/cs3apis
labkode Nov 14, 2023
a27ef0a
update buf.md
labkode Nov 14, 2023
af993bc
use org for buf
labkode Nov 15, 2023
0562c2f
Merge branch 'main' into buf
labkode Nov 16, 2023
5bef824
update go.mod
labkode Nov 16, 2023
e9a7b4a
remove unused files
labkode Nov 16, 2023
6864339
simplify Makefile
labkode Nov 16, 2023
ede4a48
do not run as root
labkode Nov 16, 2023
672f8e5
fix drone ci
labkode Nov 16, 2023
979de62
debug push
labkode Nov 16, 2023
9e59041
trigger ci
labkode Nov 16, 2023
997e39a
fix build image
labkode Nov 16, 2023
6e5a948
trigger ci
labkode Nov 16, 2023
af9ed8e
trigger ci
labkode Nov 16, 2023
f90859e
trigger ci
labkode Nov 16, 2023
3b38ffb
trigger ci
labkode Nov 16, 2023
8784c91
Merge branch 'main' into buf2
labkode Nov 16, 2023
cdf6403
trigger ci
labkode Nov 16, 2023
46cf2a8
trigger ci
labkode Nov 16, 2023
0b4bf70
trigger ci
labkode Nov 16, 2023
856d748
trigger ci
labkode Nov 16, 2023
d3a7006
trigger ci
labkode Nov 16, 2023
b26a00d
trigger ci
labkode Nov 16, 2023
d472ffe
trigger ci
labkode Nov 16, 2023
4a2a585
trigger ci
labkode Nov 16, 2023
5e063c4
trigger ci
labkode Nov 16, 2023
901d724
trigger ci
labkode Nov 16, 2023
a177715
trigger ci
labkode Nov 16, 2023
e5ebe04
trigger ci
labkode Nov 16, 2023
2fe79db
trigger ci
labkode Nov 16, 2023
5713a8c
trigger ci
labkode Nov 16, 2023
f5f62fc
trigger ci
labkode Nov 16, 2023
ed3ba38
trigger ci
labkode Nov 16, 2023
d23661f
trigger ci
labkode Nov 16, 2023
4a4d680
trigger ci
labkode Nov 16, 2023
4f17047
trigger ci
labkode Nov 16, 2023
10b65e2
trigger ci
labkode Nov 16, 2023
492735b
trigger ci
labkode Nov 16, 2023
f3afbb6
trigger ci
labkode Nov 16, 2023
5c5928a
trigger ci
labkode Nov 16, 2023
2fcb8ee
trigger ci
labkode Nov 16, 2023
6e3a783
trigger ci
labkode Nov 16, 2023
ed93538
trigger ci
labkode Nov 16, 2023
2d1725e
trigger ci
labkode Nov 16, 2023
ec41c84
trigger ci
labkode Nov 16, 2023
4efb662
trigger ci
labkode Nov 16, 2023
62cbbb5
trigger ci
labkode Nov 16, 2023
2a83e11
trigger ci
labkode Nov 16, 2023
1fac527
trigger ci
labkode Nov 16, 2023
a93f28a
trigger ci
labkode Nov 16, 2023
ccfe868
it worksnow
labkode Nov 16, 2023
7451b97
remove .drone.yml
labkode Nov 16, 2023
55bf77f
trigger ci
labkode Nov 16, 2023
366d8df
trigger ci
labkode Nov 16, 2023
11189d8
final test
labkode Nov 16, 2023
4b2c30c
clean
labkode Nov 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 0 additions & 64 deletions .drone.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: Build and Publish
on:
push:
branches:
- main
jobs:
build-and-publish:
name: Build and publish
runs-on: ubuntu-latest
container: cs3org/cs3apis-build:master
steps:
- name: Checkout
uses: actions/checkout@v4
- name: setup-ssh
env:
SSH_KEY: ${{ secrets.ssh_key}}
run: |
mkdir /root/.ssh
python3 -c "import os; file = open('/root/.ssh/id_rsa', 'w'); file.write(os.environ['SSH_KEY']); file.close()"
shasum /root/.ssh/id_rsa
chmod 400 /root/.ssh/id_rsa
stat /root/.ssh/id_rsa
touch /root/.ssh/known_hosts
chmod 400 /root/.ssh/known_hosts
ssh-keyscan -H github.com > /etc/ssh/ssh_known_hosts 2> /dev/null
cat /root/.ssh/id_rsa
- name: build-and-publish
run: cs3apis-build -git-ssh -push-go -push-js -push-node -push-python
15 changes: 15 additions & 0 deletions .github/workflows/build-only.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: Build only
on:
pull_request:
branches: [ "main" ]
jobs:
build:
name: Build only
runs-on: ubuntu-latest
container: cs3org/cs3apis-build:master
steps:
- name: Checkout
uses: actions/checkout@v4
- name: build-and-publish
run: cs3apis-build
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ pwd = $(shell pwd)
default: gen

gen:
docker run -v ${pwd}:/root/cs3apis hugo cs3apis-build
#docker run -v ${pwd}:/root/cs3apis cs3org/cs3apis cs3apis-build
echo ${pwd}
docker run -v ${pwd}:/root/cs3apis cs3org/cs3apis-build:master cs3apis-build

clean:
rm -rf build/
Expand Down