Skip to content

Commit

Permalink
fix: debugging
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Peterson <[email protected]>
  • Loading branch information
mattp-swirldslabs committed Dec 19, 2024
1 parent 9310732 commit 3af4da0
Showing 1 changed file with 5 additions and 59 deletions.
64 changes: 5 additions & 59 deletions .github/workflows/zxc-verify-docker-build-determinism.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,11 @@ jobs:
run: |
EXTRACTED_FILE_NAME="${{ steps.commit.outputs.sha }}.tar"
gunzip "${{ steps.manifest.outputs.name }}"
pwd
ls -la
tar -rvf "${EXTRACTED_FILE_NAME}" -C "${{ github.workspace }}/${{ env.DOCKER_CONTEXT_PATH }}" server/build/libs
echo "--------------------"
ls -la
gzip "${EXTRACTED_FILE_NAME}"
- name: Upload Baseline
Expand Down Expand Up @@ -301,68 +305,10 @@ jobs:
ls -la
mv "server/build/libs" "${{ github.workspace }}/${{ env.DOCKER_CONTEXT_PATH }}/"
# - name: Create Docker Working Directory
# if: ${{ runner.os == 'Linux' }}
# run: |
# USER="$(id -un)"
# GROUP="$(id -gn)"
# sudo mkdir -p /x
# sudo chown -vR ${USER}:${GROUP} /x
# sudo ls -lah /x

# - name: Remove Preinstalled Docker
# if: ${{ runner.os == 'macOS' }}
# run: |
# set -x
# sudo killall dockerd || true
# sudo killall containerd || true
# sudo rm -rvf /usr/bin/*containerd* || true
# sudo rm -rvf /usr/bin/docker* || true
# sudo rm -rvf /usr/local/bin/docker* || true
# sudo rm -rvf /usr/local/bin/*lima* || true
#
# - name: Install Lima (macOS)
# if: ${{ runner.os == 'macOS' }}
# run: |
# VERSION="v0.20.0"
# curl -fsSL "https://github.com/lima-vm/lima/releases/download/${VERSION}/lima-${VERSION:1}-$(uname -s)-$(uname -m).tar.gz" | sudo tar Cxzvm /usr/local

- name: Determine Home Directory
id: home
run: echo "directory=$(tr -d '[:space:]' < <(cd ~ && pwd))" >> "${GITHUB_OUTPUT}"

# - name: Setup Containerd Support
# uses: crazy-max/ghaction-setup-containerd@60acbf31e6572da7b83a4ed6b428ed92a35ff4d7 # v3.0.0
# if: ${{ runner.os == 'Linux' }}
# with:
# containerd-version: v1.7.2
#
# - name: Setup Docker Support
# uses: step-security/ghaction-setup-docker@42e219a378b907a83f1b323a1458fbf352af3ffd # v3.3.0
# env:
# HOME: ${{ runner.os == 'Linux' && '/x' || steps.home.outputs.directory }}
# with:
# version: v25.0.5
# daemon-config: |
# {
# "registry-mirrors": [
# "https://hub.mirror.docker.lat.ope.eng.hashgraph.io"
# ]
# }
#
# - name: Configure Default Docker Context
# env:
# SEARCH_PATH: ${{ runner.os == 'Linux' && '/x' || steps.home.outputs.directory }}
# run: |
# set -x
# if grep setup-docker-action < <(docker context ls --format '{{ .Name }}') >/dev/null; then
# docker context rm -f setup-docker-action
# fi
#
# DOCKER_CONTEXT_PATH="$(sudo find "${SEARCH_PATH}" -name docker.sock | tr -d '[:space:]')"
# docker context create setup-docker-action --docker "host=unix://${DOCKER_CONTEXT_PATH}"
# docker context use setup-docker-action

- name: Setup QEmu Support
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0

Expand Down Expand Up @@ -395,7 +341,7 @@ jobs:
build-args: |
SOURCE_DATE_EPOCH=${{ needs.generate-baseline.outputs.source-date }}
context: ${{ env.DOCKER_CONTEXT_PATH }}
tags: ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_IMAGE_NAME }}:${{ needs.generate-baseline.outputs.sha-abbrev }}
tags: ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_IMAGE_NAME }}:${{ env.VERSION }}

- name: Regenerate Manifest
id: regen-manifest
Expand Down

0 comments on commit 3af4da0

Please sign in to comment.