mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
24 lines
701 B
YAML
24 lines
701 B
YAML
|
name: docker
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches: [master]
|
||
|
pull_request:
|
||
|
branches: [master]
|
||
|
|
||
|
jobs:
|
||
|
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 local
|
||
|
- name: Push latest image to DockerHub
|
||
|
if: ${{ github.event_name == 'push' }}
|
||
|
run: docker push toxchat/bootstrap-node:latest
|
||
|
- name: Push versioned image to DockerHub
|
||
|
if: ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags/') }}
|
||
|
run: docker push toxchat/bootstrap-node:"$(other/print-version)"
|