Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: EspressoSystems/nitro-espresso-integration
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a41edb4649f645985c71865913ab780f97a5f206
Choose a base ref
..
head repository: EspressoSystems/nitro-espresso-integration
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e020022b42b5beb5db26c4ad8dd1155578e9b579
Choose a head ref
Showing with 56 additions and 56 deletions.
  1. +56 −56 .github/workflows/espresso-docker.yml
112 changes: 56 additions & 56 deletions .github/workflows/espresso-docker.yml
Original file line number Diff line number Diff line change
@@ -160,59 +160,59 @@ jobs:
# https://docs.docker.com/build/ci/github-actions/multi-platform/#distribute-build-across-multiple-runners
# Only building for AMD64
# merge_into_multiplatform_images:
needs:
- docker_build
strategy:
matrix:
target: [nitro-node, nitro-node-dev]
include:
- target: nitro-node
image: ghcr.io/espressosystems/nitro-espresso-integration/nitro-node
- target: nitro-node-dev
image: ghcr.io/espressosystems/nitro-espresso-integration/nitro-node-dev

runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Github Container Repo
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Remove digests dir
run: |
rm -rf "${{ runner.temp }}/digests"
- name: Download digests
uses: actions/download-artifact@v3
with:
name: "${{ matrix.target }}-digests"
path: "${{ runner.temp }}/digests"

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ matrix.image }}

- name: Create manifest list and push
working-directory: "${{ runner.temp }}/digests"
run: |
# Count the number of files in the directory
file_count=$(find . -type f | wc -l)
if [ "$file_count" -ne 2 ]; then
echo "Should have exactly 2 digests to combine, something went wrong"
ls -lah
exit 1
fi
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ matrix.image }}@sha256:%s ' *)
- name: Inspect image
run: |
docker buildx imagetools inspect ${{ matrix.image }}:${{ steps.meta.outputs.version }}
# needs:
# - docker_build
# strategy:
# matrix:
# target: [nitro-node, nitro-node-dev]
# include:
# - target: nitro-node
# image: ghcr.io/espressosystems/nitro-espresso-integration/nitro-node
# - target: nitro-node-dev
# image: ghcr.io/espressosystems/nitro-espresso-integration/nitro-node-dev

# runs-on: ubuntu-latest
# steps:
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3

# - name: Login to Github Container Repo
# uses: docker/login-action@v2
# with:
# registry: ghcr.io
# username: ${{ github.repository_owner }}
# password: ${{ secrets.GITHUB_TOKEN }}

# - name: Remove digests dir
# run: |
# rm -rf "${{ runner.temp }}/digests"

# - name: Download digests
# uses: actions/download-artifact@v3
# with:
# name: "${{ matrix.target }}-digests"
# path: "${{ runner.temp }}/digests"

# - name: Docker meta
# id: meta
# uses: docker/metadata-action@v5
# with:
# images: ${{ matrix.image }}

# - name: Create manifest list and push
# working-directory: "${{ runner.temp }}/digests"
# run: |
# # Count the number of files in the directory
# file_count=$(find . -type f | wc -l)

# if [ "$file_count" -ne 2 ]; then
# echo "Should have exactly 2 digests to combine, something went wrong"
# ls -lah
# exit 1
# fi

# docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
# $(printf '${{ matrix.image }}@sha256:%s ' *)
# - name: Inspect image
# run: |
# docker buildx imagetools inspect ${{ matrix.image }}:${{ steps.meta.outputs.version }}