Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: downgrade cosmovisor to v1.6.0 #864

Merged
merged 1 commit into from
Jan 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,14 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
push: ${{ github.event_name == 'push' }}
platforms: linux/amd64, linux/arm64
tags: ${{ steps.meta.outputs.tags }}

cosmovisor-lite:
runs-on: ubuntu-latest
needs: fxcore
if: github.event_name == 'push'
steps:
- name: Check out the repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -82,13 +83,14 @@ jobs:
with:
context: .
file: ./Dockerfile.cosmovisor-lite
push: ${{ github.event_name != 'pull_request' }}
push: true
platforms: linux/amd64, linux/arm64
tags: ${{ steps.meta.outputs.tags }}

cosmovisor:
runs-on: ubuntu-latest
needs: fxcore
if: github.event_name == 'push'
steps:
- name: Check out the repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -118,6 +120,6 @@ jobs:
with:
context: .
file: ./Dockerfile.cosmovisor
push: ${{ github.event_name != 'pull_request' }}
push: true
platforms: linux/amd64, linux/arm64
tags: ${{ steps.meta.outputs.tags }}
8 changes: 5 additions & 3 deletions Dockerfile.cosmovisor
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
FROM ghcr.io/pundiai/fxcorevisor:7.5.1 AS fxv7_5
FROM ghcr.io/pundiai/fx-core:8.0.1-rc0 AS fxv8
FROM ghcr.io/pundiai/fx-core:8.0.0-rc0 AS fxv8
FROM ghcr.io/pundiai/fx-core:8.1.0-rc1 AS fxv8_1
FROM --platform=$BUILDPLATFORM alpine:3.19 AS downloader

ARG TARGETPLATFORM

RUN ARCH=$(echo "$TARGETPLATFORM" | cut -d'/' -f2) && \
wget -c https://github.com/cosmos/cosmos-sdk/releases/download/cosmovisor%2Fv1.7.0/cosmovisor-v1.7.0-linux-$ARCH.tar.gz && \
tar -zxvf cosmovisor-v1.7.0-linux-$ARCH.tar.gz
wget -c https://github.com/cosmos/cosmos-sdk/releases/download/cosmovisor%2Fv1.6.0/cosmovisor-v1.6.0-linux-$ARCH.tar.gz && \
tar -zxvf cosmovisor-v1.6.0-linux-$ARCH.tar.gz

FROM alpine:3.19

Expand All @@ -29,6 +30,7 @@ ENV PATH="/root/.fxcore/cosmovisor/current/bin:${PATH}"
COPY --from=fxv7_5 /root/.fxcore/cosmovisor /root/.fxcore/cosmovisor

COPY --from=fxv8 /usr/bin/fxcored /root/.fxcore/cosmovisor/upgrades/v8.0.x/bin/fxcored
COPY --from=fxv8_1 /usr/bin/fxcored /root/.fxcore/cosmovisor/upgrades/v8.1.x/bin/fxcored

COPY --from=downloader /cosmovisor /usr/bin/cosmovisor

Expand Down
8 changes: 5 additions & 3 deletions Dockerfile.cosmovisor-lite
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
FROM ghcr.io/pundiai/fx-core:7.5.1 AS fxv7_5
FROM ghcr.io/pundiai/fx-core:8.0.1-rc0 AS fxv8
FROM ghcr.io/pundiai/fx-core:8.0.0-rc0 AS fxv8
FROM ghcr.io/pundiai/fx-core:8.1.0-rc1 AS fxv8_1
FROM --platform=$BUILDPLATFORM alpine:3.19 AS downloader

ARG TARGETPLATFORM

RUN ARCH=$(echo "$TARGETPLATFORM" | cut -d'/' -f2) && \
wget -c https://github.com/cosmos/cosmos-sdk/releases/download/cosmovisor%2Fv1.7.0/cosmovisor-v1.7.0-linux-$ARCH.tar.gz && \
tar -zxvf cosmovisor-v1.7.0-linux-$ARCH.tar.gz
wget -c https://github.com/cosmos/cosmos-sdk/releases/download/cosmovisor%2Fv1.6.0/cosmovisor-v1.6.0-linux-$ARCH.tar.gz && \
tar -zxvf cosmovisor-v1.6.0-linux-$ARCH.tar.gz

FROM alpine:3.19

Expand All @@ -31,6 +32,7 @@ RUN mkdir -p /root/.fxcore/cosmovisor/upgrades/v7.5.x/bin && \
ln -s /usr/bin/fxcored /root/.fxcore/cosmovisor/upgrades/v7.5.x/bin/fxcored

COPY --from=fxv8 /usr/bin/fxcored /root/.fxcore/cosmovisor/upgrades/v8.0.x/bin/fxcored
COPY --from=fxv8_1 /usr/bin/fxcored /root/.fxcore/cosmovisor/upgrades/v8.1.x/bin/fxcored

COPY --from=downloader /cosmovisor /usr/bin/cosmovisor

Expand Down
Loading