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 539bf2e
Show file tree
Hide file tree
Showing 2 changed files with 9 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 }}
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,13 @@ FROM base-builder-${TARGETOS}-${TARGETARCH} as builder

ENV LIGHTNINGD_VERSION=master

# Build the configurator binary for each architecture
# Fix `configurator: Exec format error` on ARM and ARM64
WORKDIR /opt/lightningd/ccan/tools/configurator
COPY ccan/tools/configurator/configurator.c configurator.c
RUN gcc -o configurator configurator.c
WORKDIR /opt/lightningd

RUN mkdir zlib && tar xvf zlib.tar.gz -C zlib --strip-components=1 \
&& cd zlib \
&& ./configure ${ZLIB_CONFIG} \
Expand Down

0 comments on commit 539bf2e

Please sign in to comment.