Skip to content

Commit

Permalink
Initial, unworking commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
tess-ten7 committed Aug 18, 2023
0 parents commit 7c08c90
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build-multiarch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: build-multiarch
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
branches:
- main
- edge

jobs:
buildx:
runs-on: ubuntu-latest
steps:
-
name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: |
${{ github.repository }}
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v2
with:
context: "{{defaultContext}}:src"
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
17 changes: 17 additions & 0 deletions src/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM alpine:3.18
MAINTAINER socketwench@deninet.com

RUN apk -U upgrade &&\
apk add --update --no-cache capnproto capnproto-dev rust git protobuf-c protobuf-c-dev && \
git clone --recurse-submodules https://gitlab.com/veilid/veilid.git veilid-git && \
cargo build --features=rt-tokio --manifest-path=veilid-git/veilid-tools/Cargo.toml && \
PROTOC=`which protoc-c` cargo build --features=rt-tokio --manifest-path=veilid-git/veilid-core/Cargo.toml && \
PROTOC=`which protoc-c` cargo build --features=rt-tokio --manifest-path=veilid-git/veilid-server/Cargo.toml && \
cargo build --features=rt-tokio --manifest-path=veilid-git/veilid-cli/Cargo.toml && \
cp veilid-git/target/debug/libveilid_tools.so /usr/lib/libveilid_tools.so && \
cp veilid-git/target/debug/libveilid_core.so /usr/lib/libveilid_core.so && \
cp veilid-git/target/debug/veilid-cli /usr/bin/veilid-cli && \
cp veilid-git/target/debug/veilid-server /usr/bin/veilid-server && \
rm -rf /tmp/* \
/veilid-git \
/var/cache/apk/*

0 comments on commit 7c08c90

Please sign in to comment.