-
Notifications
You must be signed in to change notification settings - Fork 275
Fix Dockerfile and add Build Image to GH Actions #561
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
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
e6c9e62
Remove specified git version to avoid downgrades breaking docker build
aaronbuchwald b3e2018
Add build docker image to unit test action
aaronbuchwald 5e1a35d
Update to use current branch instead of commit for docker image build
aaronbuchwald c155835
Update docker image script to push image if env var is set
aaronbuchwald a107c34
Add new line to build image script
aaronbuchwald 6c53531
Update scripts/constants.sh
aaronbuchwald 5183567
Merge branch 'master' into fix-dockerfile
aaronbuchwald 006c139
Update docker login
aaronbuchwald 99c62e3
Merge branch 'master' into fix-dockerfile
aaronbuchwald 1eb57cb
Merge branch 'master' into fix-dockerfile
aaronbuchwald 41d32c3
Update build image action
aaronbuchwald 649d08f
Update gh action
aaronbuchwald 8231fa1
checkout for docker image build
aaronbuchwald 98e4221
Set build image ID in gh action with github.ref_name
aaronbuchwald 7f6cade
Separate CI and release
aaronbuchwald 5423ab4
remove extra copy
aaronbuchwald edf164c
Update name
aaronbuchwald 37d2c88
Update variable used in build image id
aaronbuchwald caf21d0
Update set var
aaronbuchwald bf94a7c
Update dockerhub repo
aaronbuchwald e2d7a2d
Merge branch 'master' into fix-dockerfile
aaronbuchwald 3e3037c
Revert dockerhub repo name chnge and use Subnet-EVM in tag name
aaronbuchwald File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,48 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+' | ||
|
||
jobs: | ||
release: | ||
# needs: [lint_test, unit_test, e2e_test, simulator_test] | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Git checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
path: subnet-evm | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.19" | ||
- name: Set up arm64 cross compiler | ||
run: | | ||
sudo apt-get -y update | ||
sudo apt-get -y install gcc-aarch64-linux-gnu | ||
- name: Checkout osxcross | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: tpoechtrager/osxcross | ||
path: osxcross | ||
- name: Build osxcross | ||
run: | | ||
sudo apt-get -y install clang llvm-dev libxml2-dev uuid-dev libssl-dev bash patch make tar xz-utils bzip2 gzip sed cpio libbz2-dev | ||
cd osxcross | ||
wget https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX11.3.sdk.tar.xz -O tarballs/MacOSX11.3.sdk.tar.xz | ||
echo cd4f08a75577145b8f05245a2975f7c81401d75e9535dcffbb879ee1deefcbf4 tarballs/MacOSX11.3.sdk.tar.xz | sha256sum -c - | ||
UNATTENDED=1 ./build.sh | ||
echo $PWD/target/bin >> $GITHUB_PATH | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
distribution: goreleaser | ||
version: latest | ||
args: release --clean | ||
workdir: ./subnet-evm/ | ||
env: | ||
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This uses the same setup as AvalancheGo, ran into issues with the docker login GitHub action where I wasn't able to get it working: https://github.com/docker/login-action