From 0c53cbd856a6505def835959ad391754e4e740c1 Mon Sep 17 00:00:00 2001 From: Stilian Boyadzhiev Date: Fri, 30 May 2025 09:53:49 +0300 Subject: [PATCH] test arm64 --- .github/workflows/docker-build-hell-arm64.yml | 69 +++++++++++++++++++ .github/workflows/docker-build-hell.yml | 3 +- 2 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/docker-build-hell-arm64.yml diff --git a/.github/workflows/docker-build-hell-arm64.yml b/.github/workflows/docker-build-hell-arm64.yml new file mode 100644 index 0000000000..cec7ee2344 --- /dev/null +++ b/.github/workflows/docker-build-hell-arm64.yml @@ -0,0 +1,69 @@ +name: docker build on merge + +on: + pull_request: + types: + - closed + workflow_dispatch: + +jobs: + ci-build-on-merge: + if: | + github.event.pull_request.merged == true && + contains(github.event.pull_request.labels.*.name, 'CI:Build') + runs-on: macos-latest + steps: + # Pull the code + - name: Checkout code + uses: actions/checkout@v4 + + # Install Docker Buildx + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + # Log in to Docker Hub – store secrets in repo → Settings → Secrets and variables → Actions + # - name: Log in to Docker Hub + # uses: docker/login-action@v3 + # with: + # username: ${{ secrets.DOCKERHUB_USERNAME }} + # password: ${{ secrets.DOCKERHUB_TOKEN }} + + # Build (and optionally push) the image + - name: Build and push image + uses: docker/build-push-action@v5 + with: + context: . + file: ./Dockerfile # Path to the Dockerfile if not root + platforms: linux/arm64 # Add ,linux/arm64 if you need multi-arch + push: true # Change to false to keep image local to runner + tags: ${{ secrets.DOCKERHUB_USERNAME }}/go-etherium-satan:latest + + ci-build-manual: + if: github.event_name == 'workflow_dispatch' + runs-on: ubuntu-latest + steps: + # Pull the code + - name: Checkout code + uses: actions/checkout@v4 + + # Install Docker Buildx + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + # 4) Log in to Docker Hub – store secrets in repo → Settings → Secrets and variables → Actions + - name: Log in to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + # 5) Build (and optionally push) the image + - name: Build and push image + uses: docker/build-push-action@v5 + with: + context: . + file: ./Dockerfile # Path to the Dockerfile if not root + platforms: linux/arm64 # Add ,linux/arm64 if you need multi-arch + push: true # Change to false to keep image local to runner + tags: ${{ secrets.DOCKERHUB_USERNAME }}/go-etherium-satan-arm64:latest + \ No newline at end of file diff --git a/.github/workflows/docker-build-hell.yml b/.github/workflows/docker-build-hell.yml index c6fa2325d4..1ccf660dde 100644 --- a/.github/workflows/docker-build-hell.yml +++ b/.github/workflows/docker-build-hell.yml @@ -63,6 +63,7 @@ jobs: with: context: . file: ./Dockerfile # Path to the Dockerfile if not root - platforms: linux/amd64,linux/arm64 # Add ,linux/arm64 if you need multi-arch + platforms: linux/amd64 # Add ,linux/arm64 if you need multi-arch push: true # Change to false to keep image local to runner tags: ${{ secrets.DOCKERHUB_USERNAME }}/go-etherium-satan:latest + \ No newline at end of file