mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
chore: Add bootstrap daemon docker image build.
This will also push to dockerhub on merge.
This commit is contained in:
parent
29eb3dd490
commit
1e11865c4c
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
|
@ -37,10 +37,24 @@ jobs:
|
|||
- name: Cross compilation
|
||||
run: .travis/cmake-win64 script
|
||||
|
||||
freebsd:
|
||||
build-freebsd:
|
||||
runs-on: ubuntu-latest
|
||||
container: toxchat/freebsd
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build on FreeBSD
|
||||
run: .travis/cmake-freebsd-stage2
|
||||
|
||||
build-bootstrap-docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
- uses: actions/checkout@v2
|
||||
- name: Docker Build
|
||||
run: .travis/tox-bootstrapd-docker
|
||||
- name: Push images to DockerHub
|
||||
if: ${{ github.event_name == 'push' }}
|
||||
run: |
|
||||
docker push toxchat/bootstrap-node:latest
|
||||
docker push toxchat/bootstrap-node:"$(other/print-version)"
|
||||
|
|
|
@ -67,3 +67,5 @@ if ! other/fun/bootstrap_node_info.py ipv4 localhost 33445; then
|
|||
echo "Error: Unable to get bootstrap node info"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
docker tag toxchat/bootstrap-node:latest toxchat/bootstrap-node:"$(other/print-version)"
|
||||
|
|
|
@ -1 +1 @@
|
|||
ac14ae6877df0b2af683e9578cb7a548d755a3c78ceb26f169163c725963ff50 /usr/local/bin/tox-bootstrapd
|
||||
7cce630be98faab64c804255e060c85a63ea9f4401ffd1f12122ba1c5cfc45ce /usr/local/bin/tox-bootstrapd
|
||||
|
|
4
other/print-version
Executable file
4
other/print-version
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
VERSION="$(grep '^AC_INIT' configure.ac | grep -E -o '[0-9]+\.[0-9]+\.[0-9]+')"
|
||||
echo "$VERSION"
|
Loading…
Reference in New Issue
Block a user