Skip to content

Commit

Permalink
Merge pull request #74 from zeta-chain/develop
Browse files Browse the repository at this point in the history
v12.1.0
  • Loading branch information
gzukel authored Nov 9, 2023
2 parents e47895d + 8120904 commit 6fd98cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 108 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,16 +136,6 @@ jobs:
touch .release-env
make release
# - name: Build, tag, and push docker images
# uses: ./.github/actions/build-docker-images
# with:
# DOCKER_FILENAME: Dockerfile-release
# REPOSITORY_NAME: zeta-node
# IMAGE_TAG: ${{ env.GITHUB_TAG_MAJOR_VERSION }}
# GHCR_USERNAME: ${{ secrets.PAT_GITHUB_SERVICE_ACCT_USERNAME }}
# GHCR_TOKEN: ${{ secrets.PAT_GITHUB_SERVICE_ACCT }}


announce-release:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
Expand Down
105 changes: 7 additions & 98 deletions .github/workflows/rc-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ jobs:
exit 1
fi
- name: Echo Release Notes from PR Message.
id: release_notes
run: |
cat changelog.md > ${{ github.workspace }}-CHANGELOG.txt
cat ${{ github.workspace }}-CHANGELOG.txt
- name: Install Pipeline Dependencies
uses: ./.github/actions/install-dependencies
timeout-minutes: 8
Expand All @@ -66,6 +72,7 @@ jobs:
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.PAT_GITHUB_SERVICE_ACCT }}
body_path: ${{ github.workspace }}-CHANGELOG.txt
generate_release_notes: true

- name: Publish Release Files
Expand All @@ -75,104 +82,6 @@ jobs:
touch .release-env
make release
- name: Build, tag, and push docker images
uses: ./.github/actions/build-docker-images
with:
DOCKER_FILENAME: Dockerfile-relese
REPOSITORY_NAME: zeta-node
IMAGE_TAG: ${{ env.GITHUB_TAG_MAJOR_VERSION }}
GHCR_USERNAME: ${{ secrets.PAT_GITHUB_SERVICE_ACCT_USERNAME }}
GHCR_TOKEN: ${{ secrets.PAT_GITHUB_SERVICE_ACCT }}

build-alpine:
runs-on: ["ubuntu-latest"]
timeout-minutes: 30
concurrency:
group: "alpine-build-test"
needs:
- pre-release-checks
steps:
- uses: actions/checkout@v3

- name: Set CPU Architecture
shell: bash
run: |
if [ "$(uname -m)" == "aarch64" ]; then
echo "CPU_ARCH=arm64" >> $GITHUB_ENV
elif [ "$(uname -m)" == "x86_64" ]; then
echo "CPU_ARCH=amd64" >> $GITHUB_ENV
else
echo "Unsupported architecture" >&2
exit 1
fi
- name: Install Pipeline Dependencies
uses: ./.github/actions/install-dependencies
timeout-minutes: 8
with:
cpu_architecture: ${{ env.CPU_ARCH }}
skip_python: "true"
skip_aws_cli: "true"
skip_docker_compose: "false"

- uses: jirutka/setup-alpine@v1
with:
branch: v3.17
arch: x86_64
packages: >
build-base
pkgconf
lld
go
gcc
g++
libusb-dev
linux-headers
git
shell-name: alpine.sh

- name: Build zetacored and zetaclientd
env:
CGO_ENABLED: 1
GOOS: linux
GOARCH: ${{ env.CPU_ARCH }}
shell: alpine.sh --root {0}
run: |
git config --global --add safe.directory '*'
make install-testnet
cp "$HOME"/go/bin/* ./
- name: Binary Docker Test
env:
CPU_ARCH: ${{ env.CPU_ARCH }}
shell: alpine.sh --root {0}
run: |
chmod a+x ./zetacored
./zetacored version
mv zetacored zetacored-testnet-alpine-$CPU_ARCH
mv zetaclientd zetaclientd-testnet-alpine-$CPU_ARCH
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.PAT_GITHUB_SERVICE_ACCT }}
generate_release_notes: true
files: |
zetacored-*
zetaclientd-*
- name: Clean Up Alpine Workspace
if: always()
shell: alpine.sh --root {0}
run: |
set -e # fail on error
rm -rf *
- name: Clean Up Workspace
if: always()
shell: bash
run: rm -rf *

announce-release:
runs-on: ubuntu-latest
timeout-minutes: 10
Expand Down

0 comments on commit 6fd98cd

Please sign in to comment.