forked from erigontech/erigon
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #542 from blxdyx/alpha5
Alpha5
- Loading branch information
Showing
763 changed files
with
359,573 additions
and
193,341 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Remove docker image | ||
run-name: Request to remove erigontech/erigon:${{ inputs.docker_image_tag }} by @${{ github.actor }} | ||
|
||
env: | ||
DOCKERHUB_REPOSITORY: "erigontech/erigon" | ||
API_URL: "https://hub.docker.com/v2/repositories/erigontech/erigon/tags" | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- '**' | ||
workflow_dispatch: | ||
inputs: | ||
docker_image_tag: | ||
required: true | ||
type: string | ||
default: 'not_yet_defined' | ||
description: 'Docker image tag to remove from hub.docker.com. Works only for erigontech/erigon' | ||
|
||
jobs: | ||
|
||
build-release: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
name: Remove docker image | ||
|
||
steps: | ||
|
||
- name: Run API Call | ||
env: | ||
TOKEN: ${{ secrets.ORG_DOCKERHUB_ERIGONTECH_TOKEN }} | ||
run: | | ||
output_code=$(curl --write-out %{http_code} --output curl-output.log \ | ||
-s -X DELETE -H "Accept: application/json" \ | ||
-H "Authorization: JWT ${{ env.TOKEN }}" \ | ||
${{ env.API_URL }}/${{ inputs.docker_image_tag }} ) | ||
if [ $output_code -ne 204 ]; then | ||
echo "ERROR: failed to remove docker image ${{ env.DOCKERHUB_REPOSITORY }}:${{ inputs.docker_image_tag }}" | ||
echo "ERROR: API response: $(cat curl-output.log)." | ||
exit 1 | ||
else | ||
echo "SUCCESS: docker image ${{ env.DOCKERHUB_REPOSITORY }}:${{ inputs.docker_image_tag }} removed." | ||
exit 0 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Lint | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- 'release/**' | ||
pull_request: | ||
branches: | ||
- main | ||
- 'release/**' | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
- ready_for_review | ||
workflow_dispatch: | ||
|
||
jobs: | ||
lint: | ||
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.22' | ||
|
||
- name: Install golangci-lint | ||
if: runner.os == 'Linux' | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
version: v1.59.1 | ||
args: --help | ||
|
||
- name: Lint | ||
if: runner.os == 'Linux' | ||
run: make lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.