From f1e5e889cd5ff6429d03dbefba2acd0c6c2603f0 Mon Sep 17 00:00:00 2001 From: Hleb Kanonik Date: Wed, 24 Jul 2024 12:54:28 +0200 Subject: [PATCH] Update build-revision-image.yaml --- .github/workflows/build-revision-image.yaml | 33 ++++++++++++++++++--- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-revision-image.yaml b/.github/workflows/build-revision-image.yaml index ce0e69b7d6..d719589146 100644 --- a/.github/workflows/build-revision-image.yaml +++ b/.github/workflows/build-revision-image.yaml @@ -6,13 +6,38 @@ on: version: description: 'Release version' required: true - + jobs: + variables-setup: + name: Setting variables for docker build + runs-on: ubuntu-latest + environment: rc + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Create variables + id: vars + run: | + echo "platforms=${{ vars.BUILD_PLATFORMS }}" >> $GITHUB_OUTPUT + echo "version=${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT + echo "tag=${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT + echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT + outputs: + platforms: ${{ steps.vars.outputs.platforms }} + version: ${{ steps.vars.outputs.version }} + tag: ${{ steps.vars.outputs.tag }} + date: ${{ steps.vars.outputs.date }} + call-docker-build: - name: Call develop Docker build + name: Call release candidate Docker build + needs: variables-setup uses: reportportal/.github/.github/workflows/build-docker-image.yaml@main with: aws-region: ${{ vars.AWS_REGION }} - image-tag: '${{ github.event.inputs.version }}' - version: '${{ github.event.inputs.version }}' + image-tag: ${{ needs.variables-setup.outputs.tag }} + additional-tag: 'latest' + build-platforms: ${{ needs.variables-setup.outputs.platforms }} + version: ${{ needs.variables-setup.outputs.version }} + date: ${{ needs.variables-setup.outputs.date }} secrets: inherit