File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 uses : reportportal/.github/.github/workflows/build-docker-image.yaml@main
3030 with :
3131 aws-region : ${{ vars.AWS_REGION }}
32- aws-role-arn : ${{ vars.AWS_ROLE_ARN }}
32+ build-platforms : ${{ vars.BUILD_PLATFORMS || 'linux/amd64,linux/arm64' }}
3333 image-tag : ' develop-${{ github.run_number }}'
3434 additional-tag : ' develop-latest'
3535 version : ' develop-${{ github.run_number }}'
3636 date : ${{ needs.variables-setup.outputs.date }}
3737 runs-on : ubuntu-latest
38+ secrets :
39+ AWS_ROLE_ARN : ${{ secrets.AWS_ROLE_ARN }}
Original file line number Diff line number Diff line change @@ -43,10 +43,12 @@ jobs:
4343 uses : reportportal/.github/.github/workflows/build-docker-image.yaml@main
4444 with :
4545 aws-region : ${{ vars.AWS_REGION }}
46- aws-role-arn : ${{ vars.AWS_ROLE_ARN }}
46+ build-platforms : ${{ vars.BUILD_PLATFORMS || 'linux/amd64,linux/arm64' }}
4747 image-tag : ${{ needs.variables-setup.outputs.tag }}
4848 version : ${{ needs.variables-setup.outputs.tag }}
4949 branch : ${{ github.head_ref }}
5050 date : ${{ needs.variables-setup.outputs.date }}
5151 runs-on : ubuntu-latest
52+ secrets :
53+ AWS_ROLE_ARN : ${{ secrets.AWS_ROLE_ARN }}
5254
Original file line number Diff line number Diff line change @@ -18,12 +18,10 @@ jobs:
1818 - name : Create variables
1919 id : vars
2020 run : |
21- echo "platforms=${{ vars.BUILD_PLATFORMS }}" >> $GITHUB_OUTPUT
2221 echo "version=$(echo '${{ github.ref_name }}' | sed -nE 's/.*([0-9]+\.[0-9]+\.[0-9]+).*/\1/p')" >> $GITHUB_OUTPUT
2322 echo "tag=$(echo ${{ github.ref_name }}-${{ github.run_number }} | tr '/' '-')" >> $GITHUB_OUTPUT
2423 echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
2524 outputs :
26- platforms : ${{ steps.vars.outputs.platforms }}
2725 version : ${{ steps.vars.outputs.version }}
2826 tag : ${{ steps.vars.outputs.tag }}
2927 date : ${{ steps.vars.outputs.date }}
@@ -34,12 +32,13 @@ jobs:
3432 uses : reportportal/.github/.github/workflows/build-docker-image.yaml@main
3533 with :
3634 aws-region : ${{ vars.AWS_REGION }}
37- aws-role-arn : ${{ vars.AWS_ROLE_ARN }}
35+ build-platforms : ${{ vars.BUILD_PLATFORMS || 'linux/amd64,linux/arm64' }}
3836 image-tag : ${{ needs.variables-setup.outputs.tag }}
3937 release-mode : true
4038 additional-tag : ' latest'
41- build-platforms : ${{ needs.variables-setup.outputs.platforms }}
4239 version : ${{ needs.variables-setup.outputs.version }}
4340 date : ${{ needs.variables-setup.outputs.date }}
4441 runs-on : ubuntu-latest
42+ secrets :
43+ AWS_ROLE_ARN : ${{ secrets.AWS_ROLE_ARN }}
4544
Original file line number Diff line number Diff line change @@ -11,13 +11,13 @@ jobs:
1111 # TODO: Pin reusable workflow to a version tag once v1 is released
1212 uses : reportportal/.github/.github/workflows/dockerhub-release.yaml@main
1313 secrets :
14- REGESTRY_USERNAME : ${{ secrets.REGESTRY_USERNAME }}
15- REGESTRY_PASSWORD : ${{ secrets.REGESTRY_PASSWORD }}
14+ AWS_ROLE_ARN : ${{ secrets.AWS_ROLE_ARN }}
15+ REGISTRY_USERNAME : ${{ secrets.REGISTRY_USERNAME }}
16+ REGISTRY_PASSWORD : ${{ secrets.REGISTRY_PASSWORD }}
1617 with :
1718 aws-region : ${{ vars.AWS_REGION }}
18- aws-role-arn : ${{ vars.AWS_ROLE_ARN }}
19- ecr-repository : service-authorization
20- target-registry : docker.io
21- target-repository : reportportal/service-authorization
22- platforms : linux/amd64
19+ ecr-repository : ${{ vars.ECR_REPOSITORY || 'service-authorization' }}
20+ target-registry : ${{ vars.TARGET_REGISTRY || 'docker.io' }}
21+ target-repository : ${{ vars.TARGET_REPOSITORY || 'reportportal/service-authorization' }}
22+ platforms : ${{ vars.BUILD_PLATFORMS || 'linux/amd64,linux/arm64' }}
2323 release-mode : rc
You can’t perform that action at this time.
0 commit comments