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

Github actions maintenance #2706

Merged
merged 5 commits into from
Mar 21, 2024
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
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
updates:
# Enable version updates for github-actions
- package-ecosystem: "github-actions"
# Look for a `Dockerfile` in the `root` directory
directory: "/"
# Check for updates once a month
schedule:
interval: "monthly"
labels:
- "ci"
- "B0-silent"
- "D2-notlive"
38 changes: 19 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
echo "repo.full_name: ${{ github.event.pull_request.head.repo.full_name }}"
echo "github.repository: ${{ github.repository }}"

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ steps.check-git-ref.outputs.git_ref }}
- name: Get Latest RT Release
Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:
needs: ["set-tags"]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ needs.set-tags.outputs.git_ref }}
- name: Find un-copyrighted files
Expand All @@ -137,7 +137,7 @@ jobs:
needs: ["set-tags"]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ needs.set-tags.outputs.git_ref }}
- uses: gaurav-nelson/github-action-markdown-link-check@v1
Expand All @@ -151,7 +151,7 @@ jobs:
needs: ["set-tags"]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ needs.set-tags.outputs.git_ref }}
- name: Setup editorconfig checker
Expand All @@ -171,7 +171,7 @@ jobs:
needs: ["set-tags"]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ needs.set-tags.outputs.git_ref }}
- uses: oven-sh/setup-bun@v1
Expand All @@ -194,7 +194,7 @@ jobs:
needs: ["set-tags"]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ needs.set-tags.outputs.git_ref }}
- name: Use pnpm
Expand All @@ -220,7 +220,7 @@ jobs:
needs: ["set-tags"]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ needs.set-tags.outputs.git_ref }}
# With rustup's nice new toml format, we just need to run rustup show to install the toolchain
Expand All @@ -236,7 +236,7 @@ jobs:
needs: ["set-tags"]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ needs.set-tags.outputs.git_ref }}
- name: Setup Rust toolchain
Expand All @@ -250,7 +250,7 @@ jobs:
needs: ["set-tags"]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ needs.set-tags.outputs.git_ref }}
# With rustup's nice new toml format, we just need to run rustup show to install the toolchain
Expand All @@ -268,7 +268,7 @@ jobs:
needs: ["set-tags"]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ needs.set-tags.outputs.git_ref }}
- name: Install Protoc
Expand All @@ -291,7 +291,7 @@ jobs:
needs: ["set-tags"]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ needs.set-tags.outputs.git_ref }}
- name: Cargo build
Expand All @@ -317,7 +317,7 @@ jobs:
SCCACHE_CACHE_SIZE: "100GB"
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ needs.set-tags.outputs.git_ref }}
- name: Run sccache-cache
Expand Down Expand Up @@ -361,7 +361,7 @@ jobs:
DEBUG_COLORS: 1
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ needs.set-tags.outputs.git_ref }}
- run: |
Expand Down Expand Up @@ -408,7 +408,7 @@ jobs:
needs: ["set-tags", "build"]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ needs.set-tags.outputs.git_ref }}
- uses: actions/download-artifact@v3.0.2
Expand Down Expand Up @@ -466,7 +466,7 @@ jobs:
if: ${{ needs.set-tags.outputs.image_exists == 'false' && !github.event.pull_request.head.repo.fork }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ needs.set-tags.outputs.git_ref }}
- uses: actions/download-artifact@v3.0.2
Expand All @@ -489,7 +489,7 @@ jobs:
driver-opts: |
image=moby/buildkit:master
- name: Login to DockerHub
uses: docker/login-action@v2.2.0
uses: docker/login-action@v3
with:
username: ${{ secrets.MBF_DOCKERHUB_USERNAME }}
password: ${{ secrets.MBF_DOCKERHUB_PASSWORD }}
Expand All @@ -511,7 +511,7 @@ jobs:
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.licenses=${{ github.event.repository.license.spdx_id }}
- name: Login to DockerHub
uses: docker/login-action@v2.2.0
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand All @@ -535,7 +535,7 @@ jobs:
DEBUG_COLORS: 1
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ needs.set-tags.outputs.git_ref }}
- uses: pnpm/action-setup@v2
Expand Down Expand Up @@ -583,7 +583,7 @@ jobs:
DEBUG_COLORS: 1
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ needs.set-tags.outputs.git_ref }}
- uses: pnpm/action-setup@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-licenses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/client-release-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
setup-scripts:
runs-on: bare-metal
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Upload tools
uses: actions/upload-artifact@v3
with:
Expand All @@ -25,7 +25,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
echo "coverage_report=false" >> $GITHUB_OUTPUT
fi

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ steps.check-git-ref.outputs.git_ref }}
- name: Get Latest RT Release
Expand Down Expand Up @@ -99,7 +99,7 @@ jobs:
CARGO_TERM_COLOR: always
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ needs.set-tags.outputs.git_ref }}
- name: Setup Variables
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Check tooling
run: protoc --version
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# With rustup's nice new toml format, we just need to run rustup show to install the toolchain
# https://github.com/actions-rs/toolchain/issues/126#issuecomment-782989659
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/prepare-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
RUSTFLAGS: "-C target-cpu=${{ matrix.cpu }}"
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.sha }}
- name: Setup Rust toolchain
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
needs: ["build-binary"]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.sha }}
- uses: actions/download-artifact@v3.0.2
Expand All @@ -73,7 +73,7 @@ jobs:
driver-opts: |
image=moby/buildkit:master
- name: Login to DockerHub
uses: docker/login-action@v2.2.0
uses: docker/login-action@v3
with:
username: ${{ secrets.MBF_DOCKERHUB_USERNAME }}
password: ${{ secrets.MBF_DOCKERHUB_PASSWORD }}
Expand All @@ -95,7 +95,7 @@ jobs:
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.licenses=${{ github.event.repository.license.spdx_id }}
- name: Login to DockerHub
uses: docker/login-action@v2.2.0
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/publish-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
setup-scripts:
runs-on: bare-metal
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Upload tools
uses: actions/upload-artifact@v3.1.2
with:
Expand All @@ -31,7 +31,7 @@ jobs:
cpu: ["", "skylake", "znver3"]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.to }}
- name: Build production moonbeam
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
asset_upload_url: ${{ steps.create-release.outputs.upload_url }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.to }}
fetch-depth: 0
Expand Down Expand Up @@ -157,23 +157,24 @@ jobs:
needs: ["build-binary", "publish-draft-release"]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.to }}
- uses: actions/download-artifact@v3.0.2
with:
name: binaries
path: build
- name: Login to DockerHub
uses: docker/login-action@v2.2.0
uses: docker/login-action@v3
with:
username: ${{ secrets.MBF_DOCKERHUB_USERNAME }}
password: ${{ secrets.MBF_DOCKERHUB_PASSWORD }}
registry: index.docker.io
- run: |
DOCKER_IMAGE=moonbeamfoundation/moonbeam
COMMIT=`git rev-list -n 1 '${{ github.event.inputs.to }}'`
SHA=sha-${COMMIT::8}
echo using "${DOCKER_IMAGE}:${SHA} as base image"

TAG="${{ github.event.inputs.to }}-rc"

echo building "${DOCKER_IMAGE}:${TAG}"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-docker-runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Login to DockerHub
uses: docker/login-action@v2.2.0
uses: docker/login-action@v3
with:
username: ${{ secrets.MBF_DOCKERHUB_USERNAME }}
password: ${{ secrets.MBF_DOCKERHUB_PASSWORD }}
Expand All @@ -32,7 +32,7 @@ jobs:
docker push "${DOCKER_IMAGE}:${DOCKER_TAG}"

- name: Login to Purestake DockerHub
uses: docker/login-action@v2.2.0
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Login to DockerHub
uses: docker/login-action@v2.2.0
uses: docker/login-action@v3
with:
username: ${{ secrets.MBF_DOCKERHUB_USERNAME }}
password: ${{ secrets.MBF_DOCKERHUB_PASSWORD }}
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
docker push "${DOCKER_IMAGE}:latest"
fi
- name: Login to Purestake DockerHub
uses: docker/login-action@v2.2.0
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down
Loading
Loading