Skip to content

Commit

Permalink
Removing cache & platforms for base testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ShahanaFarooqui committed Jun 13, 2024
1 parent 7573e21 commit ba2d664
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,11 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
platforms: linux/amd64,linux/arm64,linux/arm/v7
platforms: linux/arm/v7
tags: |
shahanafarooqui/lightningd:${{ github.event.inputs.version }}
shahanafarooqui/lightningd:latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
elementsproject/lightningd:${{ github.event.inputs.version }}
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ RUN ( ! [ -n "${target_host}" ] ) || \
RUN ( ! [ "${target_host}" = "arm-linux-gnueabihf" ] ) || \
(sed -i '/documentation = "https:\/\/docs.rs\/cln-grpc"/a include = ["**\/*.*"]' cln-grpc/Cargo.toml)

# Fix `configurator: Exec format error` on ARM and ARM64
COPY ccan/tools/configurator/configurator.c ccan/tools/configurator/configurator.c
RUN gcc -o ccan/tools/configurator/configurator ccan/tools/configurator/configurator.c

RUN ./configure --prefix=/tmp/lightning_install --enable-static && \
make && \
/root/.local/bin/poetry run make install
Expand Down

0 comments on commit ba2d664

Please sign in to comment.