I2::Dev::Nightly::Publish #30
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
name: I2::Dev::Nightly::Publish | |
on: workflow_dispatch | |
env: | |
DOCKER_COMPOSE_PATH: defaults | |
jobs: | |
build_executor: | |
runs-on: ubuntu-latest | |
container: | |
image: hyperledger/iroha2-ci:nightly-2024-09-09 | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build iroha executor | |
run: mold --run cargo run --bin iroha_wasm_builder -- build ./wasm_samples/default_executor --optimize --out-file ${{ env.DOCKER_COMPOSE_PATH }}/executor.wasm | |
- name: Upload executor to reuse in other jobs | |
uses: actions/upload-artifact@v4 | |
with: | |
name: executor.wasm | |
path: ${{ env.DOCKER_COMPOSE_PATH }}/executor.wasm | |
retention-days: 1 | |
dockerhub: | |
runs-on: ubuntu-latest | |
needs: build_executor | |
container: | |
image: hyperledger/iroha2-ci:nightly-2024-09-09 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download executor.wasm file | |
uses: actions/download-artifact@v4 | |
with: | |
name: executor.wasm | |
path: ${{ env.DOCKER_COMPOSE_PATH }} | |
- uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push iroha2:dev-nightly image | |
uses: docker/build-push-action@v6 | |
with: | |
push: true | |
tags: hyperledger/iroha:dev-nightly-${{ github.sha }} | |
labels: commit=${{ github.sha }} | |
build-args: TAG=dev | |
# This context specification is required | |
context: . |