diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index deddb0f..137f523 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,7 +4,7 @@ on: push: env: - STACKS_BLOCKCHAIN_COMMIT: "2.2.0.0.1" + STACKS_BLOCKCHAIN_COMMIT: "feat/epoch-2.4" jobs: cancel-previous-runs: @@ -115,13 +115,13 @@ jobs: images: hirosystems/stacks-api-e2e tags: | type=raw,value=latest,enable={{is_default_branch}} - type=raw,value=stacks2.1,enable={{is_default_branch}} - type=raw,value=stacks2.1-{{branch}}-{{sha}} - type=ref,event=branch,prefix=stacks2.1- - type=ref,event=pr,prefix=stacks2.1- - type=semver,pattern={{version}},prefix=stacks2.1- - type=semver,pattern={{major}}.{{minor}},prefix=stacks2.1- - type=sha,prefix=stacks2.1- + type=raw,value=stacks2.4,enable={{is_default_branch}} + type=raw,value=stacks2.4-{{branch}}-{{sha}} + type=ref,event=branch,prefix=stacks2.4- + type=ref,event=pr,prefix=stacks2.4- + type=semver,pattern={{version}},prefix=stacks2.4- + type=semver,pattern={{major}}.{{minor}},prefix=stacks2.4- + type=sha,prefix=stacks2.4- - name: Set up QEMU uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx @@ -146,62 +146,3 @@ jobs: labels: ${{ steps.meta.outputs.labels }} cache-from: type=registry,ref=hirosystems/stacks-api-e2e:latest cache-to: type=inline - - build-push-stacks2_1-transition-docker: - needs: build-stacks-node - runs-on: ubuntu-20.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - uses: actions/download-artifact@v3 - with: - name: stacks-node-bin - path: stacks-blockchain-binaries - - name: Process of downloaded artifacts - working-directory: stacks-blockchain-binaries - run: | - ls -R - chmod +x x86_64-unknown-linux-gnu/stacks-node - chmod +x aarch64-unknown-linux-gnu/stacks-node - - name: Docker meta - id: meta - uses: docker/metadata-action@v4 - with: - images: hirosystems/stacks-api-e2e - flavor: | - latest=false - tags: | - type=raw,value=stacks2.1-transition,enable={{is_default_branch}} - type=raw,value=stacks2.1-transition-{{branch}}-{{sha}} - type=ref,event=branch,prefix=stacks2.1-transition- - type=ref,event=pr,prefix=stacks2.1-transition- - type=semver,pattern={{version}},prefix=stacks2.1-transition- - type=semver,pattern={{major}}.{{minor}},prefix=stacks2.1-transition- - type=sha,prefix=stacks2.1-transition- - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - with: - config-inline: | - [worker.oci] - max-parallelism = 1 - - name: Login to DockerHub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN || secrets.DOCKERHUB_PASSWORD }} - - name: Build Docker images - uses: docker/build-push-action@v3 - with: - file: Dockerfile.e2e - context: . - push: true - platforms: linux/amd64,linux/arm64 - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - cache-from: type=registry,ref=hirosystems/stacks-api-e2e:stacks2.1-transition - cache-to: type=inline - build-args: | - STACKS_21_HEIGHT=120 - STACKS_POX2_HEIGHT=136 diff --git a/Dockerfile.e2e b/Dockerfile.e2e index 9cc1fc6..b09f0ed 100644 --- a/Dockerfile.e2e +++ b/Dockerfile.e2e @@ -3,7 +3,7 @@ FROM rust:bullseye as builder # A commit hash, tag, or branch -ARG GIT_COMMIT=2.2.0.0.1 +ARG GIT_COMMIT=feat/epoch-2.4 ARG BLOCKCHAIN_REPO=https://github.com/stacks-network/stacks-blockchain.git ARG TARGETPLATFORM @@ -85,6 +85,15 @@ ENV STACKS_21_HEIGHT=$STACKS_21_HEIGHT ARG STACKS_POX2_HEIGHT=107 ENV STACKS_POX2_HEIGHT=$STACKS_POX2_HEIGHT +ARG STACKS_22_HEIGHT=108 +ENV STACKS_22_HEIGHT=$STACKS_22_HEIGHT + +ARG STACKS_23_HEIGHT=109 +ENV STACKS_23_HEIGHT=$STACKS_23_HEIGHT + +ARG STACKS_24_HEIGHT=111 +ENV STACKS_24_HEIGHT=$STACKS_24_HEIGHT + # priv: 6ad9cadb42d4edbfbe0c5bfb3b8a4125ddced021c4174f829b714ccbf527f02001 # ARG REWARD_RECIPIENT=STQM73RQC4EX0A07KWG1J5ECZJYBZS4SJ4ERC6WN ARG REWARD_RECIPIENT @@ -128,7 +137,7 @@ RUN <