-
Notifications
You must be signed in to change notification settings - Fork 114
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 #4751 from mnaamani/nara-update-from-master
Nara update from master
- Loading branch information
Showing
6 changed files
with
97 additions
and
118 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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Publish production runtime build joystream/node:latest | ||
name: joystream-node-docker-publish | ||
|
||
on: | ||
- workflow_dispatch | ||
|
||
env: | ||
REPOSITORY: joystream/node | ||
|
||
jobs: | ||
main: | ||
name: Publish joystream/node:latest docker image | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'refs/heads/master' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '14.x' | ||
|
||
- id: compute_shasum | ||
name: Compute runtime code shasum | ||
run: | | ||
export TAG_SHASUM=`scripts/runtime-code-shasum.sh` | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
|
||
- name: Publish manifest | ||
run: | | ||
IMAGE=${{ env.REPOSITORY }}:${{ env.TAG_SHASUM }} | ||
LATEST_TAG=${{ env.REPOSITORY }}:latest | ||
docker pull $IMAGE-amd64 | ||
docker pull $IMAGE-arm64 | ||
docker manifest create $LATEST_TAG $IMAGE-amd64 $IMAGE-arm64 | ||
docker manifest annotate $LATEST_TAG $IMAGE-amd64 --arch amd64 | ||
docker manifest annotate $LATEST_TAG $IMAGE-arm64 --arch arm64 | ||
docker manifest push $LATEST_TAG |
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 |
---|---|---|
|
@@ -8,7 +8,9 @@ RUN rustup default nightly-2022-05-11 | |
RUN rustup target add wasm32-unknown-unknown --toolchain nightly-2022-05-11 | ||
RUN rustup component add --toolchain nightly-2022-05-11 clippy | ||
RUN rustup install nightly | ||
RUN cargo +nightly install cargo-chef | ||
# Temporary build fix by using older version of cargo-chef | ||
# https://github.com/Joystream/joystream/issues/4745 | ||
RUN cargo +nightly install [email protected] | ||
|
||
FROM rust AS planner | ||
LABEL description="Cargo chef prepare" | ||
|
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