Skip to content

Build base binaries #26

Build base binaries

Build base binaries #26

Workflow file for this run

name: Build
on:
push:
branches: [main]
permissions:
contents: read
packages: write
jobs:
docker:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- image: orbit-server
dockerfile: ./Dockerfile.server
- image: orbit-cli
dockerfile: ./Dockerfile.cli
steps:
- uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/m1guelpf/${{ matrix.image }}
tags: |
type=sha
type=edge
type=semver,pattern={{major}}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
file: ${{ matrix.dockerfile }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
binaries:
runs-on: ubuntu-latest
steps:

Check failure on line 59 in .github/workflows/build.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yaml

Invalid workflow file

You have an error in your yaml syntax on line 59
- uses: actions/checkout@v3
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
target: x86_64-unknown-linux-musl
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --release --bins
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
path: |
target/x86_64-unknown-linux-musl/release/orbit-cli
target/x86_64-unknown-linux-musl/release/orbit-server