Skip to content

Commit

Permalink
Fix server release (#2518)
Browse files Browse the repository at this point in the history
* Adjust server Dockerfile
 - Simpify remix-run_router patch

* Update crun and podman required for new buildah version
 - Build arm64 version of server

* Disable arm64 build for now, build is too slow with qemu
  • Loading branch information
HeavenVolkoff authored May 29, 2024
1 parent 4a62d26 commit 3428644
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 6 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Server release
on:
release:
types: [published]
pull_request:
paths:
- '.github/workflows/server.yml'
- 'apps/server/docker/*'
workflow_dispatch:

jobs:
Expand All @@ -27,6 +31,15 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master

- name: Update Podman & crun
run: |
sudo apt-get remove crun podman
brew install crun podman
- name: Update buildah
shell: bash
run: |
Expand Down Expand Up @@ -57,6 +70,12 @@ jobs:
curl -SsJLO "https://passt.top/builds/latest/x86_64/${deb}"
sudo dpkg -i "${deb}"
- name: Basic sanity check
run: |
crun --version
podman version
buildah --version
- name: Determine image name & tag
id: image_info
shell: bash
Expand All @@ -77,6 +96,11 @@ jobs:
echo "repo=${GITHUB_REPOSITORY}" >> "$GITHUB_OUTPUT"
echo "repo_ref=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> "$GITHUB_OUTPUT"
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: 'arm64'

- name: Build image
id: build-image
uses: redhat-actions/buildah-build@v2
Expand Down
Binary file modified patches/@[email protected]
Binary file not shown.
16 changes: 10 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3428644

Please sign in to comment.