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

ci: removed unnecessary credentials from ci #936

Merged
merged 8 commits into from
Aug 9, 2023
Merged
Show file tree
Hide file tree
Changes from 5 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
100 changes: 41 additions & 59 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
runs-on: ubuntu-latest
# runs-on: ["zeta-runners"]
timeout-minutes: 20
if: (! startsWith(github.ref, 'refs/tags/')) || (! startsWith(github.ref, 'refs/heads/develop') )
# if: (! startsWith(github.ref, 'refs/tags/')) || (! startsWith(github.ref, 'refs/heads/develop') )
concurrency:
group: "build-and-test-single-arch"
steps:
Expand All @@ -58,11 +58,6 @@ jobs:
skip_python: "true"
skip_aws_cli: "true"
skip_docker_compose: "true"

- name: setup-git-credentials
uses: de-vri-es/setup-git-credentials@v2.0.8
with:
credentials: ${{ secrets.PAT_GITHUB_SERVICE_ACCT }}

- name: Test
uses: nick-fields/retry@v2
Expand Down Expand Up @@ -103,7 +98,7 @@ jobs:

runs-on: ${{matrix.runs-on}}
timeout-minutes: 30
if: startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/develop')
# if: startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/develop')
steps:
- uses: actions/checkout@v3

Expand All @@ -128,11 +123,6 @@ jobs:
skip_aws_cli: "true"
skip_docker_compose: "true"

- name: setup-git-credentials
uses: de-vri-es/setup-git-credentials@v2.0.8
with:
credentials: ${{ secrets.PAT_GITHUB_SERVICE_ACCT }}

# - uses: buildjet/cache
# timeout-minutes: 5
# with:
Expand Down Expand Up @@ -192,7 +182,7 @@ jobs:
build-alpine-and-test:
runs-on: ["ubuntu-latest"]
timeout-minutes: 30
if: startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/develop')
# if: startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/develop')
concurrency:
group: "alpine-build-test"
steps:
Expand Down Expand Up @@ -235,30 +225,21 @@ jobs:
git
shell-name: alpine.sh

- name: setup-git-credentials
uses: de-vri-es/setup-git-credentials@v2.0.8
with:
credentials: ${{ secrets.PAT_GITHUB_SERVICE_ACCT }}

# - name: Test
# shell: alpine.sh --root {0}
# run: |
# echo "Running Build Tests"
# apk add --no-cache --update
# make clean
# make test
# - name: setup-git-credentials
# uses: de-vri-es/setup-git-credentials@v2.0.8
# with:
# credentials: ${{ secrets.PAT_GITHUB_SERVICE_ACCT }}

- name: Test
uses: nick-fields/retry@v2
with:
timeout_minutes: 20
max_attempts: 2
retry_on: error
shell: alpine.sh --root {0}
command: |
echo "Running Build Tests"
make clean
make test
env:
CGO_ENABLED: 1
GOOS: linux
GOARCH: ${{ env.CPU_ARCH }}
shell: alpine.sh --root {0}
run: |
echo "Running Build Tests"
make clean
make test

- name: Build zetacored and zetaclientd
env:
Expand Down Expand Up @@ -363,18 +344,19 @@ jobs:
#runs-on: ubuntu-latest

timeout-minutes: 15
if: startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/develop')
# if: startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/develop')
needs:
- build-and-test-multi-arch
- smoke-test
- build-alpine-and-test
steps:
- uses: actions/checkout@v3

- name: setup-git-credentials
uses: de-vri-es/setup-git-credentials@v2.0.8
with:
credentials: ${{ secrets.PAT_GITHUB_SERVICE_ACCT }}
# This can probably be removed now - Aug 2023
# - name: setup-git-credentials
# uses: de-vri-es/setup-git-credentials@v2.0.8
# with:
# credentials: ${{ secrets.PAT_GITHUB_SERVICE_ACCT }}

- name: Install Pipeline Dependencies
uses: ./.github/actions/install-dependencies
Expand Down Expand Up @@ -480,7 +462,7 @@ jobs:
upgrade_path_testing:
runs-on: ["buildjet-4vcpu-ubuntu-2204"]
timeout-minutes: 60
if: startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release')
# if: startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release')
needs:
- build-and-test-multi-arch
- build-alpine-and-test
Expand Down Expand Up @@ -512,17 +494,17 @@ jobs:
#runs-on: ubuntu-latest
runs-on: ["zeta-runners"]
timeout-minutes: 15
if: startsWith(github.ref, 'refs/tags/')
# if: startsWith(github.ref, 'refs/tags/')
needs:
- upgrade_path_testing

steps:
- uses: actions/checkout@v3

- name: setup-git-credentials
uses: de-vri-es/setup-git-credentials@v2.0.8
with:
credentials: ${{ secrets.PAT_GITHUB_SERVICE_ACCT }}
# - name: setup-git-credentials
# uses: de-vri-es/setup-git-credentials@v2.0.8
# with:
# credentials: ${{ secrets.PAT_GITHUB_SERVICE_ACCT }}

- name: Install Pipeline Dependencies
uses: ./.github/actions/install-dependencies
Expand Down Expand Up @@ -577,20 +559,20 @@ jobs:
fi
id: determine_release_type

- name: "SEND:DISCORD:MESSAGE"
if: steps.determine_release_type.outputs.RELEASE_TYPE == 'major'
uses: gzukel/CosmosComposites/send_discord_message@main
with:
discord_token: "${{ secrets.DISCORD_TOKEN }}"
discord_channel_id: "${{ secrets.DISCORD_CHANNEL_ID }}"
discord_message: |
Hey <@&1122981184255840306>! A new version of the zetachain node has been released.

Major Version Upgrade (e.g. v5.x.x to V6.x.x) must be completed through a governance proposal.
We will submit a governance proposal in the next few days with a 12-hour voting period.
More specific information including block height will be shared as part of the governance proposal.
# - name: "SEND:DISCORD:MESSAGE"
# if: steps.determine_release_type.outputs.RELEASE_TYPE == 'major'
# uses: gzukel/CosmosComposites/send_discord_message@main
# with:
# discord_token: "${{ secrets.DISCORD_TOKEN }}"
# discord_channel_id: "${{ secrets.DISCORD_CHANNEL_ID }}"
# discord_message: |
# Hey <@&1122981184255840306>! A new version of the zetachain software has been released.

# Major Version Upgrade (e.g. v5.x.x to V6.x.x) must be completed through a governance proposal.
# We will submit a governance proposal in the next few days.
# More specific information including block height will be shared as part of the governance proposal.

See the release notes for more details. https://github.com/zeta-chain/node/releases/tag/${{ env.BINARY_VERSION }}
# See the release notes for more details. https://github.com/zeta-chain/node/releases/tag/${{ env.BINARY_VERSION }}

# - name: "SEND:DISCORD:MESSAGE"
# if: steps.determine_release_type.outputs.RELEASE_TYPE == 'minor'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/chain-operations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ jobs:
- name: Install Pipeline Dependencies
uses: ./.github/actions/install-dependencies

- name: setup-git-credentials
uses: de-vri-es/setup-git-credentials@v2.0.8
with:
credentials: ${{ secrets.PAT_GITHUB_SERVICE_ACCT }}
# - name: setup-git-credentials
# uses: de-vri-es/setup-git-credentials@v2.0.8
# with:
# credentials: ${{ secrets.PAT_GITHUB_SERVICE_ACCT }}

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ jobs:
- name: Install Pipeline Dependencies
uses: ./.github/actions/install-dependencies

- name: setup-git-credentials
uses: de-vri-es/setup-git-credentials@v2.0.8
with:
credentials: ${{ secrets.PAT_GITHUB_SERVICE_ACCT }}
# - name: setup-git-credentials
# uses: de-vri-es/setup-git-credentials@v2.0.8
# with:
# credentials: ${{ secrets.PAT_GITHUB_SERVICE_ACCT }}

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/gosec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ jobs:
with:
fetch-depth: 0

- name: setup-git-credentials
uses: de-vri-es/setup-git-credentials@v2.0.8
with:
credentials: ${{ secrets.PAT_GITHUB_SERVICE_ACCT }}


- name: Set up Go
uses: actions/setup-go@v2
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
# - name: Install Pipeline Dependencies
# uses: ./.github/actions/install-dependencies

- name: setup-git-credentials
uses: de-vri-es/setup-git-credentials@v2.0.8
with:
credentials: ${{ secrets.PAT_GITHUB_SERVICE_ACCT }}
# - name: setup-git-credentials
# uses: de-vri-es/setup-git-credentials@v2.0.8
# with:
# credentials: ${{ secrets.PAT_GITHUB_SERVICE_ACCT }}

- name: Set up Go
uses: actions/setup-go@v3
Expand Down
Loading