Skip to content

Commit

Permalink
Update Repo (#1961)
Browse files Browse the repository at this point in the history
# Goal
The goal of this PR is to update the GitHub org of the repository

# Discussion
- Updated `LibertyDSNP` -> `frequency-chain`
- Move the CI image build to branch
[`ci/ci-base-image`](https://github.com/frequency-chain/frequency/tree/ci/ci-base-image)
- Updated Copyright names
  • Loading branch information
wilwade authored May 3, 2024
1 parent 6885dbc commit 7de94fb
Show file tree
Hide file tree
Showing 53 changed files with 589 additions and 706 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e-testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
run-e2e:
name: Run E2E Tests
runs-on: ubuntu-22.04
container: ghcr.io/libertydsnp/frequency/ci-base-image:latest
container: ghcr.io/frequency-chain/frequency/ci-base-image:latest
steps:
- name: Validate
shell: bash
Expand Down
70 changes: 2 additions & 68 deletions .github/workflows/merge-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,10 @@ on:
- main

jobs:
changes:
name: Determine Changed Files
runs-on: ubuntu-22.04
outputs:
ci-base-image: ${{steps.filter.outputs.ci-base-image}}
steps:
- name: Check Out Repo
uses: actions/checkout@v4
- name: Check for Changed Files
uses: dorny/paths-filter@ebc4d7e9ebcb0b1eb21480bb8f43113e996ac77a
id: filter
with:
filters: |
ci-base-image:
- 'tools/ci/docker/ci-base-image.dockerfile'
publish-js-api-augment-rc:
name: Merge - Publish JS API Augment Release Candidate
runs-on: ubicloud-standard-4
container: ghcr.io/libertydsnp/frequency/ci-base-image:latest
container: ghcr.io/frequency-chain/frequency/ci-base-image:1.3.1
steps:
- name: Check Out Repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -65,7 +49,7 @@ jobs:
calc-code-coverage:
name: Merge - Calculate Code Coverage
runs-on: ubicloud-standard-8
container: ghcr.io/libertydsnp/frequency/ci-base-image:latest
container: ghcr.io/frequency-chain/frequency/ci-base-image:1.3.1
steps:
- name: Check Out Repo
uses: actions/checkout@v4
Expand All @@ -74,53 +58,3 @@ jobs:
uses: ./.github/workflows/common/codecov
with:
code-cov-token: ${{ secrets.CODECOV_TOKEN }}

publish-ci-base-image:
needs: changes
if: needs.changes.outputs.ci-base-image == 'true'
name: Publish CI Base Image
env:
# NOTE: IMAGE_VERSION should be updated if ci-base-image.dockerfile is updated
# ci-base-image is published IF and ONLY IF ci-base-image.dockerfile changes
# IMAGE_VERSION reflects the latest version of ci-base-image.dockerfile that has been published
IMAGE_NAME: ci-base-image
IMAGE_VERSION: 1.3.0
BRANCH_NAME: main
runs-on: ubuntu-22.04
steps:
- name: Check Out Repo
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: "amd64"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Get Rust Version
id: rust_version
run: echo "::set-output name=RUST_VERSION::$(rustc --version)"
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Sanitize repo owner slug
uses: actions/github-script@v7
id: repo_slug
with:
result-encoding: string
script: return `ghcr.io/${context.repo.owner.toLowerCase()}/${context.repo.repo.toLowerCase()}`
- name: Build and Push Docker Image
uses: docker/build-push-action@v5
with:
context: tools/ci/docker
push: true
file: tools/ci/docker/ci-base-image.dockerfile
tags: |
${{steps.repo_slug.outputs.result}}/${{env.IMAGE_NAME}}:${{env.BRANCH_NAME}}
${{steps.repo_slug.outputs.result}}/${{env.IMAGE_NAME}}:latest
${{steps.repo_slug.outputs.result}}/${{env.IMAGE_NAME}}:${{env.IMAGE_VERSION}}
build-args: |
IMAGE_VERSION=${{env.IMAGE_VERSION}}
RUST_VERSION=${{steps.rust_version.outputs.RUST_VERSION}}
59 changes: 0 additions & 59 deletions .github/workflows/publish-dev-ci-base-image.yml

This file was deleted.

16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ jobs:
build-profile: release
release-file-name-prefix: frequency
runs-on: ubicloud-standard-8
container: ghcr.io/libertydsnp/frequency/ci-base-image:latest
container: ghcr.io/frequency-chain/frequency/ci-base-image:1.3.1
env:
SIGNING_SUBKEY_FINGERPRINT: B6327D1474C6392032870E8EFA4FD1E73A0FE707
steps:
Expand Down Expand Up @@ -213,7 +213,7 @@ jobs:
- name: List GPG Keys
run: gpg -k; gpg -K
# The error in this step may be due to expired signing subkey
# See https://github.com/LibertyDSNP/frequency/issues/1695
# See https://github.com/frequency-chain/frequency/issues/1695
- name: Generate Binary Signature
working-directory: ${{env.BIN_DIR}}
run: |
Expand Down Expand Up @@ -351,7 +351,7 @@ jobs:
needs: version-code
name: Build Rust Developer Docs
runs-on: ubicloud-standard-4
container: ghcr.io/libertydsnp/frequency/ci-base-image:latest
container: ghcr.io/frequency-chain/frequency/ci-base-image:1.3.1
steps:
- name: Check Out Repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -385,7 +385,7 @@ jobs:
RELEASE_FILENAME_PREFIX: frequency-local
ARCH: amd64
runs-on: ubuntu-22.04
container: ghcr.io/libertydsnp/frequency/ci-base-image:latest
container: ghcr.io/frequency-chain/frequency/ci-base-image:1.3.1
steps:
- name: Set Env Vars
run: |
Expand Down Expand Up @@ -491,7 +491,7 @@ jobs:
# Could not port this job to container because the reference node will be started in a
# parallel container to the job polkadot-js-tools container and the latter will not
# be able to connect to the former without runner supporting DinD mode first.
# See https://github.com/LibertyDSNP/frequency/issues/1543
# See https://github.com/frequency-chain/frequency/issues/1543
compare-metadata:
needs: build-binaries
name: Compare Metadata
Expand Down Expand Up @@ -650,7 +650,7 @@ jobs:
needs: wait-for-all-builds
name: Release Built Artifacts
runs-on: ubuntu-22.04
container: ghcr.io/libertydsnp/frequency/ci-base-image:latest
container: ghcr.io/frequency-chain/frequency/ci-base-image:1.3.1
steps:
- name: Check Out Repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -803,7 +803,7 @@ jobs:
github-token: ${{secrets.GHA_WORKFLOW_TRIGGER}}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'LibertyDSNP',
owner: 'frequency-chain',
repo: 'metadata-portal',
workflow_id: 'auto-sign.yml',
ref: 'main'
Expand Down Expand Up @@ -997,7 +997,7 @@ jobs:
repository: ${{env.DOCKER_HUB_PROFILE}}/${{matrix.node}}
readme-filepath: docker/${{matrix.node}}.overview.md

# Published to https://libertydsnp.github.io/frequency/
# Published to https://frequency-chain.github.io/frequency/
release-rust-developer-docs:
needs: wait-for-all-builds
name: Release Rust Developer Docs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rococo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
run-e2e:
name: Run E2E Tests
runs-on: ubuntu-22.04
container: ghcr.io/libertydsnp/frequency/ci-base-image:latest
container: ghcr.io/frequency-chain/frequency/ci-base-image:1.3.1
steps:
- name: Validate
shell: bash
Expand Down
50 changes: 12 additions & 38 deletions .github/workflows/verify-pr-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ jobs:
- '**/*.rs'
- '**/Cargo.toml'
- 'e2e/**/*.{ts,json}'
ci-docker-image:
- 'tools/ci/docker/ci-base-image.dockerfile'
clear-metadata-labels:
name: Clear Metadata Labels
Expand Down Expand Up @@ -131,7 +129,7 @@ jobs:
spec: frequency
branch_alias: pr
runs-on: ubicloud-standard-16
container: ghcr.io/libertydsnp/frequency/ci-base-image:latest
container: ghcr.io/frequency-chain/frequency/ci-base-image:1.3.1
env:
NETWORK: mainnet
steps:
Expand Down Expand Up @@ -177,7 +175,7 @@ jobs:
if: needs.changes.outputs.cargo-lock == 'true'
name: Check for Vulnerable Crates
runs-on: ubuntu-22.04
container: ghcr.io/libertydsnp/frequency/ci-base-image:latest
container: ghcr.io/frequency-chain/frequency/ci-base-image:1.3.1
steps:
- name: Check Out Repo
uses: actions/checkout@v4
Expand All @@ -193,7 +191,7 @@ jobs:
if: needs.changes.outputs.rust == 'true'
name: Verify Rust Code Format
runs-on: ubuntu-22.04
container: ghcr.io/libertydsnp/frequency/ci-base-image:latest
container: ghcr.io/frequency-chain/frequency/ci-base-image:1.3.1
steps:
- name: Check Out Repo
uses: actions/checkout@v4
Expand All @@ -206,7 +204,7 @@ jobs:
if: needs.changes.outputs.rust == 'true'
name: Lint Rust Code
runs-on: ubicloud-standard-4
container: ghcr.io/libertydsnp/frequency/ci-base-image:latest
container: ghcr.io/frequency-chain/frequency/ci-base-image:1.3.1
steps:
- name: Check Out Repo
uses: actions/checkout@v4
Expand All @@ -222,7 +220,7 @@ jobs:
if: needs.changes.outputs.rust == 'true'
name: Verify Rust Developer Docs
runs-on: ubicloud-standard-4
container: ghcr.io/libertydsnp/frequency/ci-base-image:latest
container: ghcr.io/frequency-chain/frequency/ci-base-image:1.3.1
steps:
- name: Check Out Repo
uses: actions/checkout@v4
Expand All @@ -236,7 +234,7 @@ jobs:
if: needs.changes.outputs.rust == 'true'
name: Verify Rust Packages and Dependencies
runs-on: ubicloud-standard-4
container: ghcr.io/libertydsnp/frequency/ci-base-image:latest
container: ghcr.io/frequency-chain/frequency/ci-base-image:1.3.1
steps:
- name: Check Out Repo
uses: actions/checkout@v4
Expand All @@ -248,7 +246,7 @@ jobs:
if: needs.changes.outputs.rust == 'true'
name: Run Rust Tests
runs-on: ubicloud-standard-8
container: ghcr.io/libertydsnp/frequency/ci-base-image:latest
container: ghcr.io/frequency-chain/frequency/ci-base-image:1.3.1
steps:
- name: Check Out Repo
uses: actions/checkout@v4
Expand All @@ -263,7 +261,7 @@ jobs:
if: needs.changes.outputs.rust == 'true'
name: Calculate Code Coverage
runs-on: ubicloud-standard-8
container: ghcr.io/libertydsnp/frequency/ci-base-image:latest
container: ghcr.io/frequency-chain/frequency/ci-base-image:1.3.1
steps:
- name: Check Out Repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -391,7 +389,7 @@ jobs:
needs: build-binaries
name: Verify JS API Augment
runs-on: ubuntu-22.04
container: ghcr.io/libertydsnp/frequency/ci-base-image:latest
container: ghcr.io/frequency-chain/frequency/ci-base-image:1.3.1
steps:
- name: Check Out Repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -508,30 +506,6 @@ jobs:
push: false
file: docker/${{env.IMAGE_NAME}}.dockerfile

verify-ci-docker-image:
needs: changes
if: needs.changes.outputs.ci-docker-image == 'true'
name: Verify CI Docker Image
runs-on: ubuntu-22.04
steps:
- name: Check Out Repo
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: "amd64"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build CI image
env:
IMAGE_PATH: tools/ci/docker
IMAGE_NAME: ci-base-image
uses: docker/build-push-action@v5
with:
context: .
push: false
file: ${{env.IMAGE_PATH}}/${{env.IMAGE_NAME}}.dockerfile

execute-binary-checks:
needs: build-binaries
name: Execute Binary Checks
Expand Down Expand Up @@ -778,10 +752,10 @@ jobs:
(echo "ERROR: The actual genesis state does not match the expected" && exit 1)
should-run-benchmarks:
if: github.repository == 'LibertyDSNP/frequency'
if: github.repository == 'frequency-chain/frequency'
name: Run Benchmarks?
runs-on: ubuntu-22.04
container: ghcr.io/libertydsnp/frequency/ci-base-image:latest
container: ghcr.io/frequency-chain/frequency/ci-base-image:1.3.1
outputs:
should_run_benchmarks: ${{steps.run-benchmarks.outputs.run}}
pallets: ${{steps.run-benchmarks.outputs.pallets}}
Expand Down Expand Up @@ -810,7 +784,7 @@ jobs:
fi
run-benchmarks:
if: github.repository == 'LibertyDSNP/frequency' &&
if: github.repository == 'frequency-chain/frequency' &&
needs.should-run-benchmarks.outputs.should_run_benchmarks == 'true'
needs: should-run-benchmarks
name: Run Benchmarks
Expand Down
4 changes: 2 additions & 2 deletions HEADER-APACHE2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file is part of Substrate.
// This file is part of Frequency.

// Copyright (C) Parity Technologies (UK) Ltd.
// Copyright (C) Frequency Network Foundation.
// SPDX-License-Identifier: Apache-2.0

// Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
Loading

0 comments on commit 7de94fb

Please sign in to comment.