diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000000..caeef52e7c7 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,35 @@ +# Create a release folder with the osmosis binaries +# This workflow runs on every new tag or when manually triggered +# It will create a release folder that it's served as an workflow artifact + +name: Release Osmosis + +on: + push: + tags: + - 'v*' + workflow_dispatch: + +jobs: + release: + runs-on: ubuntu-latest + steps: + - + name: Check out the repo + uses: actions/checkout@v2 + - + name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - + name: Launch release process + run: | + make -f contrib/images/osmobuilder/Makefile release + - + name: Upload release folder + uses: actions/upload-artifact@v2 + with: + name: release + path: release diff --git a/contrib/images/osmobuilder/Makefile b/contrib/images/osmobuilder/Makefile index c38c057b5a9..41bcb133c1b 100644 --- a/contrib/images/osmobuilder/Makefile +++ b/contrib/images/osmobuilder/Makefile @@ -37,8 +37,6 @@ build-binary-amd64: create-dockerx-builder --build-arg BUILD_TAGS=$(BUILD_TAGS) \ -t $(IMAGE)-amd64 \ --load \ - --no-cache \ - --progress plain \ -f contrib/images/osmobuilder/Dockerfile . # Get binary from image for amd64 architecture @@ -46,8 +44,8 @@ get-binary-amd64: build-binary-amd64 mkdir -p release/ docker rm -f osmobinary || true docker create -ti --name osmobinary $(IMAGE)-amd64 - docker cp osmobinary:/osmosis/build/osmosisd release/osmosis-$(VERSION)-linux-amd64 - tar -zcvf release/osmosis-$(VERSION)-linux-amd64.tar.gz release/osmosis-$(VERSION)-linux-amd64 + docker cp osmobinary:/osmosis/build/osmosisd release/osmosisd-$(VERSION)-linux-amd64 + tar -zcvf release/osmosisd-$(VERSION)-linux-amd64.tar.gz release/osmosisd-$(VERSION)-linux-amd64 docker rm -f osmobinary # Build image for arm64 architecture @@ -61,8 +59,6 @@ build-binary-arm64: create-dockerx-builder --build-arg BUILD_TAGS=$(BUILD_TAGS) \ -t $(IMAGE)-arm64 \ --load \ - --no-cache \ - --progress plain \ -f contrib/images/osmobuilder/Dockerfile . # Get binary from image for arm64 architecture @@ -70,8 +66,8 @@ get-binary-arm64: build-binary-arm64 mkdir -p release/ docker rm -f osmobinary || true docker create -ti --name osmobinary $(IMAGE)-arm64 - docker cp osmobinary:/osmosis/build/osmosisd release/osmosis-$(VERSION)-linux-arm64 - tar -zcvf release/osmosis-$(VERSION)-linux-arm64.tar.gz release/osmosis-$(VERSION)-linux-arm64 + docker cp osmobinary:/osmosis/build/osmosisd release/osmosisd-$(VERSION)-linux-arm64 + tar -zcvf release/osmosisd-$(VERSION)-linux-arm64.tar.gz release/osmosisd-$(VERSION)-linux-arm64 docker rm -f osmobinary # Calculate sha