diff --git a/.github/actions/build-test-push/action.yml b/.github/actions/build-test-push/action.yml index 5167de4b..87c942a7 100644 --- a/.github/actions/build-test-push/action.yml +++ b/.github/actions/build-test-push/action.yml @@ -60,30 +60,43 @@ runs: - name: Build ${{ inputs.platform }} id: build shell: bash + env: + INPUT_VERSION: ${{ inputs.version }} + INPUT_PLATFORM: ${{ inputs.platform }} + INPUT_ALTERNATE_REPOSITORY: ${{ inputs.alternate_repository }} + INPUT_DRY_RUN: ${{ inputs.dry_run }} run: | .github/actions/build-test-push/build.sh \ - --version "${{ inputs.version }}" \ - --platform "${{ inputs.platform }}" \ - --alternate-repository "${{ inputs.alternate_repository }}" \ - --dry-run "${{ inputs.dry_run }}" + --version "$INPUT_VERSION" \ + --platform "$INPUT_PLATFORM" \ + --alternate-repository "$INPUT_ALTERNATE_REPOSITORY" \ + --dry-run "$INPUT_DRY_RUN" - name: Run integration tests if: inputs.skip_integrations_tests != 'true' shell: bash + env: + INPUT_VERSION: ${{ inputs.version }} + INPUT_PLATFORM: ${{ inputs.platform }} + INPUT_ALTERNATE_REPOSITORY: ${{ inputs.alternate_repository }} + INPUT_DRY_RUN: ${{ inputs.dry_run }} run: | .github/actions/build-test-push/test.sh \ - --version "${{ inputs.version }}" \ - --platform "${{ inputs.platform }}" \ - --alternate-repository "${{ inputs.alternate_repository }}" \ - --dry-run "${{ inputs.dry_run }}" + --version "$INPUT_VERSION" \ + --platform "$INPUT_PLATFORM" \ + --alternate-repository "$INPUT_ALTERNATE_REPOSITORY" \ + --dry-run "$INPUT_DRY_RUN" - name: Push if: inputs.docker_hub_username != '' shell: bash + env: + INPUT_TAGS: ${{ steps.build.outputs.tags }},${{ steps.build.outputs.tags_cloud_run }},${{ steps.build.outputs.tags_aws_lambda }} + INPUT_DRY_RUN: ${{ inputs.dry_run }} run: | .github/actions/build-test-push/push.sh \ - --tags "${{ steps.build.outputs.tags }},${{ steps.build.outputs.tags_cloud_run }},${{ steps.build.outputs.tags_aws_lambda }}" \ - --dry-run "${{ inputs.dry_run }}" + --tags "$INPUT_TAGS" \ + --dry-run "$INPUT_DRY_RUN" - name: Outputs shell: bash diff --git a/.github/actions/clean/action.yml b/.github/actions/clean/action.yml index 4dae20bf..c7f725f1 100644 --- a/.github/actions/clean/action.yml +++ b/.github/actions/clean/action.yml @@ -23,9 +23,12 @@ runs: env: DOCKERHUB_USERNAME: ${{ inputs.docker_hub_username }} DOCKERHUB_TOKEN: ${{ inputs.docker_hub_password }} + INPUT_TAGS: ${{ inputs.tags }} + INPUT_SNAPSHOT_VERSION: ${{ inputs.snapshot_version }} + INPUT_DRY_RUN: ${{ inputs.dry_run }} shell: bash run: | .github/actions/clean/clean.sh \ - --tags "${{ inputs.tags }}" \ - --snapshot-version "${{ inputs.snapshot_version }}" \ - --dry-run "${{ inputs.dry_run }}" + --tags "$INPUT_TAGS" \ + --snapshot-version "$INPUT_SNAPSHOT_VERSION" \ + --dry-run "$INPUT_DRY_RUN" diff --git a/.github/actions/merge/action.yml b/.github/actions/merge/action.yml index 00214679..7824de28 100644 --- a/.github/actions/merge/action.yml +++ b/.github/actions/merge/action.yml @@ -41,8 +41,12 @@ runs: - name: Merge shell: bash + env: + INPUT_TAGS: ${{ inputs.tags }} + INPUT_ALTERNATE_REGISTRY: ${{ inputs.alternate_registry }} + INPUT_DRY_RUN: ${{ inputs.dry_run }} run: | .github/actions/merge/merge.sh \ - --tags "${{ inputs.tags }}" \ - --alternate-registry "${{ inputs.alternate_registry }}" \ - --dry-run "${{ inputs.dry_run }}" + --tags "$INPUT_TAGS" \ + --alternate-registry "$INPUT_ALTERNATE_REGISTRY" \ + --dry-run "$INPUT_DRY_RUN"