chore: Add bootstrap daemon docker image build.

This will also push to dockerhub on merge.
This commit is contained in:
iphydf 2021-12-23 15:44:48 +00:00
parent 29eb3dd490
commit 1e11865c4c
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9
4 changed files with 22 additions and 2 deletions

View File

@ -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)"

View File

@ -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)"

View File

@ -1 +1 @@
ac14ae6877df0b2af683e9578cb7a548d755a3c78ceb26f169163c725963ff50 /usr/local/bin/tox-bootstrapd
7cce630be98faab64c804255e060c85a63ea9f4401ffd1f12122ba1c5cfc45ce /usr/local/bin/tox-bootstrapd

4
other/print-version Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
VERSION="$(grep '^AC_INIT' configure.ac | grep -E -o '[0-9]+\.[0-9]+\.[0-9]+')"
echo "$VERSION"