Skip to content

chore(deps): lock file maintenance #463

chore(deps): lock file maintenance

chore(deps): lock file maintenance #463

Workflow file for this run

name: Build binary
on:
pull_request:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: false
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: login to Docker
uses: docker/login-action@v3
with:
username: brunojppb
password: ${{ secrets.DOCKER_TOKEN }}
- name: build binary
run: |
docker pull --platform linux/arm64 brunojppb/turbo-cache-server-build:latest || true
docker pull --platform linux/amd64 brunojppb/turbo-cache-server-build:latest || true
docker buildx build --platform linux/arm64,linux/amd64 --tag brunojppb/turbo-cache-server-build:latest --push --cache-to type=registry,ref=brunojppb/turbo-cache-server-build:cache --cache-from type=registry,ref=brunojppb/turbo-cache-server-build:latest .
- name: create temp containers to copy binaries from
run: |
docker pull brunojppb/turbo-cache-server-build:latest
docker create --name dist_arm64 --platform arm64 brunojppb/turbo-cache-server-build
docker create --name dist_x64 --platform amd64 brunojppb/turbo-cache-server-build
- name: copy arm64 binary
run: |
mkdir out && \
docker cp dist_arm64:/usr/bin/decay out/decay-arm64
- name: copy x64 binary
run: |
docker cp dist_x64:/usr/bin/decay out/decay-x64
- uses: actions/upload-artifact@v5
with:
name: binaries
path: |
out/decay-arm64
out/decay-x64