Skip to content

Commit f0993b7

Browse files
committed
Provide required parameters from the CI pipeline
Add outputs references
1 parent c63d8aa commit f0993b7

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

.github/workflows/cicd-1-pull-request.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,11 @@ jobs:
9898
uses: ./.github/workflows/stage-3-build.yaml
9999
if: needs.metadata.outputs.does_pull_request_exist == 'true' || (github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'reopened'))
100100
with:
101-
build_datetime: "${{ needs.metadata.outputs.build_datetime }}"
102-
build_timestamp: "${{ needs.metadata.outputs.build_timestamp }}"
103-
build_epoch: "${{ needs.metadata.outputs.build_epoch }}"
104-
nodejs_version: "${{ needs.metadata.outputs.nodejs_version }}"
105-
python_version: "${{ needs.metadata.outputs.python_version }}"
106-
terraform_version: "${{ needs.metadata.outputs.terraform_version }}"
107-
version: "${{ needs.metadata.outputs.version }}"
101+
environment_tag: test
102+
project_name: test-docker
103+
function_app_source_code_path: src
104+
docker_compose_file_csv_list: compose.yaml
105+
excluded_containers_csv_list: db,app
108106
secrets: inherit
109107
acceptance-stage: # Recommended maximum execution time is 10 minutes
110108
name: "Acceptance stage"

.github/workflows/stage-3-build.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ jobs:
130130
env:
131131
IMAGE_NAME: ${{ inputs.project_name }}-${{ matrix.function }}
132132
PR_NUM_TAG: ${{ steps.pr_ref.outputs.pr_num_tag }}
133-
COMMIT_HASH_TAG: ${{ steps.tags.short_commit_hash }}
134-
REPO_PATH: ${{ steps.tags.registry_repository_path }}
133+
COMMIT_HASH_TAG: ${{ steps.tags.outputs.short_commit_hash }}
134+
REPO_PATH: ${{ steps.tags.outputs.registry_repository_path }}
135135
run: |
136136
docker compose -f ${COMPOSE_FILE//,/ -f } -p ${PROJECT_NAME} build --no-cache --pull ${{ matrix.function }}
137137
docker tag ${IMAGE_NAME}:latest "${REPO_PATH}:${COMMIT_HASH_TAG}"
@@ -157,8 +157,8 @@ jobs:
157157
env:
158158
IMAGE_NAME: ${{ inputs.project_name }}-${{ matrix.function }}
159159
PR_NUM_TAG: ${{ steps.pr_ref.outputs.pr_num_tag }}
160-
COMMIT_HASH_TAG: ${{ steps.tags.short_commit_hash }}
161-
REPO_PATH: ${{ steps.tags.registry_repository_path }}
160+
COMMIT_HASH_TAG: ${{ steps.tags.outputs.short_commit_hash }}
161+
REPO_PATH: ${{ steps.tags.outputs.registry_repository_path }}
162162
GH_TOKEN: ${{ github.token }}
163163
run: |
164164
docker push "${REPO_PATH}:${COMMIT_HASH_TAG}"

0 commit comments

Comments
 (0)