Skip to content

Commit d40da67

Browse files
committed
Merge branch 'stable' into unstable
2 parents ae301af + f6a5a5b commit d40da67

File tree

4 files changed

+29
-42
lines changed

4 files changed

+29
-42
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -268,40 +268,6 @@ jobs:
268268
name: Windows_amd64_checksum
269269
path: ./dist/${{ steps.make_dist.outputs.archive_dir }}/build/nimbus_validator_client.sha512sum
270270
retention-days: 2
271-
build-macos-amd64:
272-
name: macOS AMD64 release asset
273-
runs-on: ubuntu-latest
274-
steps:
275-
- name: Checkout code
276-
uses: actions/checkout@v2
277-
- name: Build project
278-
id: make_dist
279-
run: |
280-
make dist-macos
281-
cd dist
282-
ARCHIVE=$(echo nimbus-eth2_macOS_amd64_*.tar.gz)
283-
echo "::set-output name=archive::"${ARCHIVE}
284-
echo "::set-output name=archive_dir::"${ARCHIVE%.tar.gz}
285-
tar -xzf ${ARCHIVE} ${ARCHIVE%.tar.gz}/build/nimbus_beacon_node.sha512sum
286-
tar -xzf ${ARCHIVE} ${ARCHIVE%.tar.gz}/build/nimbus_validator_client.sha512sum
287-
- name: Upload archive artefact
288-
uses: actions/upload-artifact@v2
289-
with:
290-
name: macOS_amd64_archive
291-
path: ./dist/${{ steps.make_dist.outputs.archive }}
292-
retention-days: 2
293-
- name: Upload BN checksum artefact
294-
uses: actions/upload-artifact@v2
295-
with:
296-
name: macOS_amd64_checksum
297-
path: ./dist/${{ steps.make_dist.outputs.archive_dir }}/build/nimbus_beacon_node.sha512sum
298-
retention-days: 2
299-
- name: Upload VC checksum artefact
300-
uses: actions/upload-artifact@v2
301-
with:
302-
name: macOS_amd64_checksum
303-
path: ./dist/${{ steps.make_dist.outputs.archive_dir }}/build/nimbus_validator_client.sha512sum
304-
retention-days: 2
305271
build-macos-arm64:
306272
name: macOS ARM64 release asset
307273
runs-on: ubuntu-latest
@@ -338,7 +304,7 @@ jobs:
338304
retention-days: 2
339305
prepare-release:
340306
name: Prepare release draft
341-
needs: [build-amd64, build-arm64, build-arm, build-win64, build-macos-amd64, build-macos-arm64]
307+
needs: [build-amd64, build-arm64, build-arm, build-win64, build-macos-arm64]
342308
runs-on: ubuntu-latest
343309
steps:
344310
- name: Download artefacts
@@ -368,8 +334,6 @@ jobs:
368334
cat Linux_arm_checksum/* >> release_notes.md
369335
echo '# Windows AMD64' >> release_notes.md
370336
cat Windows_amd64_checksum/* >> release_notes.md
371-
echo '# macOS AMD64' >> release_notes.md
372-
cat macOS_amd64_checksum/* >> release_notes.md
373337
echo '# macOS ARM64' >> release_notes.md
374338
cat macOS_arm64_checksum/* >> release_notes.md
375339
echo '```' >> release_notes.md
@@ -390,7 +354,6 @@ jobs:
390354
Linux_arm_archive/*
391355
Linux_arm_packages/*
392356
Windows_amd64_archive/*
393-
macOS_amd64_archive/*
394357
macOS_arm64_archive/*
395358
- name: Delete artefacts
396359
uses: geekyeggo/delete-artifact@v1
@@ -408,8 +371,6 @@ jobs:
408371
Linux_arm_packages
409372
Windows_amd64_archive
410373
Windows_amd64_checksum
411-
macOS_amd64_archive
412-
macOS_amd64_checksum
413374
macOS_arm64_archive
414375
macOS_arm64_checksum
415376
@@ -419,7 +380,7 @@ jobs:
419380
username: ${{ secrets.DOCKERHUB_USERNAME }}
420381
password: ${{ secrets.DOCKERHUB_TOKEN }}
421382

422-
- name: Build multi-arch Docker image
383+
- name: Build multi-arch Docker images
423384
run: |
424385
REFNAME="${{ github.ref }}"
425386
TAG="${REFNAME#refs/tags/}"
@@ -435,4 +396,15 @@ jobs:
435396
--amend statusim/nimbus-eth2:arm64-latest \
436397
--amend statusim/nimbus-eth2:arm-latest
437398
docker manifest push statusim/nimbus-eth2:multiarch-latest
438-
399+
docker manifest create \
400+
statusim/nimbus-validator-client:multiarch-${TAG} \
401+
--amend statusim/nimbus-validator-client:amd64-${TAG} \
402+
--amend statusim/nimbus-validator-client:arm64-${TAG} \
403+
--amend statusim/nimbus-validator-client:arm-${TAG}
404+
docker manifest push statusim/nimbus-validator-client:multiarch-${TAG}
405+
docker manifest create \
406+
statusim/nimbus-validator-client:multiarch-latest \
407+
--amend statusim/nimbus-validator-client:amd64-latest \
408+
--amend statusim/nimbus-validator-client:arm64-latest \
409+
--amend statusim/nimbus-validator-client:arm-latest
410+
docker manifest push statusim/nimbus-validator-client:multiarch-latest

docker/dist/binaries/Dockerfile.bn.amd64

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,10 @@ USER user
1111
STOPSIGNAL SIGINT
1212

1313
COPY "nimbus-eth2/build/nimbus_beacon_node" "/home/user/nimbus_beacon_node"
14+
15+
RUN mkdir -p /home/user/nimbus-eth2/build && \
16+
ln -s /home/user/nimbus_beacon_node /home/user/nimbus-eth2/build/nimbus_beacon_node && \
17+
chown -R user:user /home/user/nimbus-eth2/build
18+
1419
WORKDIR "/home/user/"
1520
ENTRYPOINT ["/home/user/nimbus_beacon_node"]

docker/dist/binaries/Dockerfile.bn.arm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,10 @@ USER user
1515
STOPSIGNAL SIGINT
1616

1717
COPY "nimbus-eth2/build/nimbus_beacon_node" "/home/user/nimbus_beacon_node"
18+
19+
RUN mkdir -p /home/user/nimbus-eth2/build && \
20+
ln -s /home/user/nimbus_beacon_node /home/user/nimbus-eth2/build/nimbus_beacon_node && \
21+
chown -R user:user /home/user/nimbus-eth2/build
22+
1823
WORKDIR "/home/user/"
1924
ENTRYPOINT ["/home/user/nimbus_beacon_node"]

docker/dist/binaries/Dockerfile.bn.arm64

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,10 @@ USER user
1515
STOPSIGNAL SIGINT
1616

1717
COPY "nimbus-eth2/build/nimbus_beacon_node" "/home/user/nimbus_beacon_node"
18+
19+
RUN mkdir -p /home/user/nimbus-eth2/build && \
20+
ln -s /home/user/nimbus_beacon_node /home/user/nimbus-eth2/build/nimbus_beacon_node && \
21+
chown -R user:user /home/user/nimbus-eth2/build
22+
1823
WORKDIR "/home/user/"
1924
ENTRYPOINT ["/home/user/nimbus_beacon_node"]

0 commit comments

Comments
 (0)