Skip to content

[build] Install all dependencies before compiling in Docker. #6

[build] Install all dependencies before compiling in Docker.

[build] Install all dependencies before compiling in Docker. #6

Workflow file for this run

name: docker
on:
push:
branches:
- main
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: recovery tag information
run: git fetch origin --depth=1 +refs/tags/*:refs/tags/*
- name: set up qemu
uses: docker/setup-qemu-action@v3
- name: set up docker buildx
uses: docker/setup-buildx-action@v3
- name: login to docker hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: build and push
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/tnsp:latest
${{ secrets.DOCKERHUB_USERNAME }}/tnsp:${{ github.sha }}