diff --git a/.github/workflows/iroha2-profiling-image.yml b/.github/workflows/iroha2-profiling-image.yml index 340c66e25d9..421530d6ffd 100644 --- a/.github/workflows/iroha2-profiling-image.yml +++ b/.github/workflows/iroha2-profiling-image.yml @@ -4,13 +4,30 @@ on: push: tags: - 'v2*' + workflow_dispatch: + inputs: + IROHA2_DOCKERFILE: + required: true + default: Dockerfile.glibc + IROHA2_PROFILE: + required: true + default: profiling + IROHA2_RUSTFLAGS: + required: false + default: -C force-frame-pointers=on + IROHA2_FEATURES: + required: false + default: profiling + IROHA2_CARGOFLAGS: + required: false + default: -Z build-std -env: - IROHA2_DOCKERFILE: Dockerfile.glibc - IROHA2_PROFILE: profiling - IROHA2_RUSTFLAGS: -C force-frame-pointers=on - IROHA2_FEATURES: profiling - IROHA2_CARGOFLAGS: -Z build-std +# env: +# IROHA2_DOCKERFILE: Dockerfile.glibc +# IROHA2_PROFILE: profiling +# IROHA2_RUSTFLAGS: -C force-frame-pointers=on +# IROHA2_FEATURES: profiling +# IROHA2_CARGOFLAGS: -Z build-std jobs: registry: @@ -29,12 +46,12 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Login to Soramitsu Harbor - uses: docker/login-action@v3 - with: - registry: docker.soramitsu.co.jp - username: ${{ secrets.HARBOR_USERNAME }} - password: ${{ secrets.HARBOR_TOKEN }} + # - name: Login to Soramitsu Harbor + # uses: docker/login-action@v3 + # with: + # registry: docker.soramitsu.co.jp + # username: ${{ secrets.HARBOR_USERNAME }} + # password: ${{ secrets.HARBOR_TOKEN }} - name: Set up Docker Buildx id: buildx if: always() @@ -47,14 +64,14 @@ jobs: with: push: true tags: | - hyperledger/iroha:${{ env.TAG }}-${{ env.IROHA2_PROFILE }} - docker.soramitsu.co.jp/iroha2/iroha:${{ env.TAG }}-${{ env.IROHA2_PROFILE }} + bastos525/iroha:${{ env.TAG }}-${{ env.IROHA2_PROFILE }} + # docker.soramitsu.co.jp/iroha2/iroha:${{ env.TAG }}-${{ env.IROHA2_PROFILE }} labels: commit=${{ github.sha }} build-args: | - "PROFILE=${{ env.IROHA2_PROFILE }}" - "RUSTFLAGS=${{ env.IROHA2_RUSTFLAGS }}" - "FEATURES=${{ env.IROHA2_FEATURES }}" - "CARGOFLAGS=${{ env.IROHA2_CARGOFLAGS }}" - file: ${{env.IROHA2_DOCKERFILE }} + "PROFILE=${{ github.event.inputs.IROHA2_PROFILE }}" + "RUSTFLAGS=${{ github.event.inputs.IROHA2_RUSTFLAGS }}" + "FEATURES=${{ github.event.inputs.IROHA2_FEATURES }}" + "CARGOFLAGS=${{ github.event.inputs.IROHA2_CARGOFLAGS }}" + file: ${{ github.event.inputs.IROHA2_DOCKERFILE }} # This context specification is required context: .