From 46e07313c380ef5079c423e350ea63185db4a2df Mon Sep 17 00:00:00 2001 From: deowk Date: Fri, 26 Apr 2024 12:14:37 +0200 Subject: [PATCH] chore: update step reference in manifest --- .github/workflows/node-build.yml | 4 ++++ .github/workflows/node-manifest.yml | 2 +- .github/workflows/release.yml | 20 +++++++++++--------- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/workflows/node-build.yml b/.github/workflows/node-build.yml index 739729c..481db7d 100644 --- a/.github/workflows/node-build.yml +++ b/.github/workflows/node-build.yml @@ -8,6 +8,10 @@ on: required: false type: string default: "mempool" + TAG: + required: false + type: string + default: 'latest' env: REGISTRY_IMAGE: ${{ inputs.REGISTRY }}/aiblockofficial/node-${{ inputs.NODE_TYPE }} diff --git a/.github/workflows/node-manifest.yml b/.github/workflows/node-manifest.yml index 832f151..3b1fdf8 100644 --- a/.github/workflows/node-manifest.yml +++ b/.github/workflows/node-manifest.yml @@ -15,7 +15,7 @@ env: jobs: create-and-push-manifest: outputs: - json: ${{ steps.matrix.outputs.json }} + json: ${{ steps.meta.outputs.json }} runs-on: ubuntu-latest steps: - name: Download digests diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b60b02d..833cfbe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,18 +10,20 @@ permissions: security-events: write jobs: - build: + get-version: runs-on: ubuntu-latest + outputs: + tag: ${{ steps.vars.outputs.tag }} steps: - uses: actions/checkout@v2 - + - name: Set Version id: vars run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT - - - uses: aiblockofficial/workflows/.github/workflows/node-build.yml@main - with: - REGISTRY: ${{ vars.REGISTRY }} - REPOSITORY: ${{ vars.REPOSITORY }} - TAG: ${{ steps.vars.outputs.tag }} - NODE_TYPE: "miner" + release: + needs: get-version + uses: ./.github/workflows/node-build.yml + with: + REGISTRY: ${{ vars.REGISTRY }} + TAG: ${{ needs.get-version.outputs.tag }} + NODE_TYPE: "miner"