From f92ae3095fe7dfc4e522c90a90e82e3f96612a5a Mon Sep 17 00:00:00 2001 From: Cal Bera Date: Tue, 24 Jun 2025 22:58:28 -0700 Subject: [PATCH] chore(CI): isolate docker workflow to run independently --- .github/workflows/docker.yml | 43 +++++++++++++++++++++++++++++++++++ .github/workflows/release.yml | 38 +------------------------------ 2 files changed, 44 insertions(+), 37 deletions(-) create mode 100644 .github/workflows/docker.yml diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 0000000000..a72296e184 --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,43 @@ +name: Docker + +on: + push: + tags: + - "v1.*" + branches: + - "main" + +jobs: + docker: + name: Docker Image + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + attestations: write + id-token: write + steps: + - uses: actions/checkout@v4 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: 1.24 + cache: false + + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push multi-arch images to GHCR + run: | + go run build/ci.go dockerx -platform linux/amd64,linux/arm64 -hub ghcr.io/berachain/bera-geth -upload diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index eca40357c2..479af7bfbb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,8 +4,6 @@ on: push: tags: - "v1.*" - branches: - - "release/v1.*" jobs: extract-version: @@ -87,40 +85,6 @@ jobs: - name: Cleanup bin run: rm -fr build/bin/* - docker: - name: Docker Image - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - attestations: write - id-token: write - steps: - - uses: actions/checkout@v4 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version: 1.24 - cache: false - - - name: Login to GitHub Container Registry - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build and push multi-arch images to GHCR - run: | - go run build/ci.go dockerx -platform linux/amd64,linux/arm64 -hub ghcr.io/berachain/bera-geth -upload - draft-release: name: Draft Release needs: [extract-version, linux-intel, linux-arm] @@ -257,6 +221,6 @@ jobs: # Using --target with GITHUB_SHA ensures we create the release at the right commit echo "$body" | gh release create "$RELEASE_TAG" \ --draft \ - --title "Bera-Geth $RELEASE_TAG" \ + --title "Bera Geth $RELEASE_TAG" \ -F - \ "${assets[@]}"