-
Notifications
You must be signed in to change notification settings - Fork 648
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 #2673 from bitshares/testnet_release
Merge release branch into testnet branch for 6.1 TESTNET release
- Loading branch information
Showing
223 changed files
with
10,950 additions
and
7,139 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ jobs: | |
name: Build and test in macOS | ||
strategy: | ||
matrix: | ||
os: [macos-10.15, macos-11] | ||
os: [macos-11] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Install dependencies | ||
|
@@ -17,7 +17,7 @@ jobs: | |
brew install ccache | ||
brew install parallel | ||
brew install bitshares/boost/[email protected] | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Configure | ||
|
@@ -31,7 +31,7 @@ jobs: | |
-D OPENSSL_ROOT_DIR=/usr/local/opt/[email protected] \ | ||
.. | ||
- name: Load Cache | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ccache | ||
key: testnet-ccache-${{ matrix.os }}-${{ github.ref }}-${{ github.sha }} | ||
|
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
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 |
---|---|---|
@@ -1,46 +1,62 @@ | ||
name: Build and push to DockerHub | ||
name: Docker | ||
on: [ push, pull_request ] | ||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Inject slug/short environment variables | ||
uses: rlespinasse/[email protected] | ||
- name: Decide whether to push to DockerHub, and set tag | ||
if: | | ||
github.event_name == 'push' && | ||
( startsWith( github.ref, 'refs/tags/' ) || | ||
contains( fromJSON('["master","develop","testnet","hardfork"]'), env.GITHUB_REF_NAME ) ) | ||
contains( fromJSON('["master","develop","testnet","hardfork"]'), github.ref_name ) ) | ||
run: | | ||
if [[ "${GITHUB_REF_NAME}" == "master" ]] ; then | ||
if [ "${GITHUB_REF_NAME}" == "master" ] ; then | ||
DOCKER_PUSH_TAG=latest | ||
else | ||
DOCKER_PUSH_TAG=${GITHUB_REF_NAME} | ||
fi | ||
echo "DOCKER_PUSH_TAG=${DOCKER_PUSH_TAG}" | ||
echo "DOCKER_PUSH_TAG=${DOCKER_PUSH_TAG}" >> $GITHUB_ENV | ||
VERSION_MAJOR=`echo "${DOCKER_PUSH_TAG}" | cut -f1 -d'.'` | ||
if [ "${VERSION_MAJOR}" != "${DOCKER_PUSH_TAG}" ]; then | ||
VERSION_MINOR=`echo "${DOCKER_PUSH_TAG}" | cut -f2 -d'.'` | ||
DOCKER_PUSH_TAG_SHORT=${VERSION_MAJOR}.${VERSION_MINOR} | ||
if [ "${DOCKER_PUSH_TAG_SHORT}" != "${DOCKER_PUSH_TAG}" ]; then | ||
echo "DOCKER_PUSH_TAG_SHORT=${DOCKER_PUSH_TAG_SHORT}" | ||
echo "DOCKER_PUSH_TAG_SHORT=${DOCKER_PUSH_TAG_SHORT}" >> $GITHUB_ENV | ||
fi | ||
fi | ||
- name: Test tag | ||
if: env.DOCKER_PUSH_TAG != '' | ||
run: echo "${DOCKER_PUSH_TAG}" | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Build only | ||
uses: docker/build-push-action@v2 | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: . | ||
load: true | ||
- name: Login to DockerHub | ||
if: env.DOCKER_PUSH_TAG != '' | ||
uses: docker/login-action@v1 | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Push to DockerHub | ||
if: env.DOCKER_PUSH_TAG != '' | ||
uses: docker/build-push-action@v2 | ||
- name: Push to DockerHub (for branches) | ||
if: env.DOCKER_PUSH_TAG != '' && env.DOCKER_PUSH_TAG_SHORT == '' | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: . | ||
push: true | ||
tags: ${{ secrets.DOCKERHUB_REPO_PATH }}:${{ env.DOCKER_PUSH_TAG }} | ||
- name: Push to DockerHub (for tags) | ||
if: env.DOCKER_PUSH_TAG != '' && env.DOCKER_PUSH_TAG_SHORT != '' | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: . | ||
push: true | ||
tags: bitshares/bitshares-core:${{ env.DOCKER_PUSH_TAG }} | ||
tags: | | ||
${{ secrets.DOCKERHUB_REPO_PATH }}:${{ env.DOCKER_PUSH_TAG }} | ||
${{ secrets.DOCKERHUB_REPO_PATH }}:${{ env.DOCKER_PUSH_TAG_SHORT }} |
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
Oops, something went wrong.