Skip to content

new version

new version #61

Workflow file for this run

name: Docker build and upload
on:
push:
branches:
- 'main'
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Git Checkout
uses: actions/checkout@v3
with:
submodules: recursive
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/bake-action@v2
with:
push: true
set: |
*.platform=linux/amd64,linux/arm64/v8,linux/arm/v7
*.cache-from=type=gha
*.cache-to=type=gha,mode=max
- name: Build binaries
uses: docker/bake-action@v2
with:
set: |
*.target=bare
*.platform=linux/amd64,linux/arm64/v8,linux/arm/v7
*.output=type=local,dest=out
*.cache-from=type=gha
*.cache-to=type=gha,mode=max
- uses: actions/upload-artifact@v3
with:
name: artifacts
path: out/*