Skip to content

Commit

Permalink
ci: move from go-ipfs v0.15.0 in CI to Kubo v0.21.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorropo committed Jul 27, 2023
1 parent dc74d93 commit bb6a4b5
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup-ipfs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ runs:
- uses: ipfs/download-ipfs-distribution-action@v1
with:
name: go-ipfs
version: "${{ env.GO_IPFS_VER }}"
version: "${{ env.KUBO_VER }}"
- uses: ipfs/download-ipfs-distribution-action@v1
with:
name: ipfs-cluster-ctl
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ on:

env:
DIST_ROOT: ${{ github.event.inputs.custom_dist_root || '/ipns/dist.ipfs.tech' }} # content root used for calculating diff to build
GO_IPFS_VER: 'v0.15.0' # go-ipfs daemon used for chunking and applying diff
CLUSTER_CTL_VER: 'v1.0.4' # ipfs-cluster-ctl used for pinning
KUBO_VER: 'v0.21.0' # kubo daemon used for chunking and applying diff
CLUSTER_CTL_VER: 'v1.0.4' # ipfs-cluster-ctl used for pinning

jobs:
build:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ on:

env:
DIST_ROOT: ${{ github.event.inputs.custom_dist_root || '/ipns/dist.ipfs.tech' }} # content root used for calculating diff to build
GO_IPFS_VER: 'v0.15.0' # go-ipfs daemon used for chunking and applying diff
CLUSTER_CTL_VER: 'v1.0.4' # ipfs-cluster-ctl used for pinning
KUBO_VER: 'v0.21.0' # kubo daemon used for chunking and applying diff
CLUSTER_CTL_VER: 'v1.0.4' # ipfs-cluster-ctl used for pinning

concurrency:
group: nightly
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ FROM ubuntu:20.04
ENV DEBIAN_FRONTEND noninteractive
ARG USER_UID

ARG GO_IPFS_VER
ARG KUBO_VER
RUN apt-get update -q && apt-get install -y git curl gnupg jq build-essential gawk zip tzdata && \
ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime && \
dpkg-reconfigure --frontend noninteractive tzdata
RUN curl -s "https://dist.ipfs.tech/go-ipfs/${GO_IPFS_VER}/go-ipfs_${GO_IPFS_VER}_linux-amd64.tar.gz" | tar vzx -C /usr/local/bin/ go-ipfs/ipfs --strip-components=1
RUN curl -s "https://dist.ipfs.tech/kubo/${KUBO_VER}/kubo_${KUBO_VER}_linux-amd64.tar.gz" | tar vzx -C /usr/local/bin/ kubo/ipfs --strip-components=1

RUN adduser --shell /bin/bash --home /asdf --disabled-password --gecos asdf asdf --uid $USER_UID
ENV PATH="${PATH}:/asdf/.asdf/shims:/asdf/.asdf/bin"
Expand Down
2 changes: 1 addition & 1 deletion dockerized
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if [[ "$(docker images -q "$IMAGE_NAME:$IMAGE_TAG" 2> /dev/null)" == "" ]]; then
docker build . -t "$IMAGE_NAME:$IMAGE_TAG" \
--build-arg CACHEBUST="$IMAGE_TAG" \
--build-arg USER_UID="$(id -u "$USER")" \
--build-arg GO_IPFS_VER="${GO_IPFS_VER:-$(curl -s https://dist.ipfs.tech/go-ipfs/versions | tail -n 1)}" # match http api client version on CI
--build-arg KUBO_VER="${KUBO_VER:-$(curl -s https://dist.ipfs.tech/kubo/versions | tail -n 1)}" # match http api client version on CI

fi

Expand Down

0 comments on commit bb6a4b5

Please sign in to comment.