-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* WIP workflow * WIP * aio * subdirs * fix * WF fix * WF tmp * TO REMOVE * Update playground_deploy_examples.yml * Update playground_deploy_examples.yml * GA workflow * TO REMOVE * WIP * wf * to remove * Revert "to remove" This reverts commit c33aeb7. * revert * concurrency2 * no concurrency * lock * seq * beam_concurr * debug * debug * dirt * wait_for_ready * Revert "debug" This reverts commit 0d08a0c80ef6424829a47c01dbfe52ea0e3f0d93. * BEAM_CONC: 4 * origin required * webgrpc * examples_cd wf * add * to remove * keep * fix * secrets * refactor * rm * -dump * Revert "rm" This reverts commit 349d43c. * renamse * nit * fix * stable Co-authored-by: MakarkinSAkvelon <67736809+MakarkinSAkvelon@users.noreply.github.com>
- Loading branch information
1 parent
10977bf
commit b5a0f48
Showing
12 changed files
with
186 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
name: Playground Examples CD | ||
|
||
on: | ||
workflow_dispatch: | ||
# Concurrency group for all deployment ops | ||
concurrency: playground_production | ||
jobs: | ||
deploy_examples: | ||
strategy: | ||
matrix: | ||
sdk: ["python", "go", "java"] | ||
# run sequentially | ||
max-parallel: 1 | ||
uses: ./.github/workflows/playground_examples_cd_reusable.yml | ||
with: | ||
sdk: ${{ matrix.sdk }} | ||
origin: PG_EXAMPLES | ||
subdirs: "./learning/katas ./examples ./sdks" | ||
secrets: | ||
project_id: ${{ secrets.GCP_PLAYGROUND_PROJECT_ID }} | ||
sa_key_content: ${{ secrets.GCP_PLAYGROUND_SA_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
name: Playground Examples CD for a given SDK and origin | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
sdk: | ||
type: string | ||
required: true | ||
subdirs: | ||
type: string | ||
required: true | ||
origin: | ||
type: string | ||
required: true | ||
secrets: | ||
project_id: | ||
required: true | ||
sa_key_content: | ||
required: true | ||
|
||
jobs: | ||
cd: | ||
name: CD ${{ inputs.sdk }} ${{ inputs.origin }} | ||
runs-on: ubuntu-latest | ||
env: | ||
ORIGIN: ${{ inputs.origin }} | ||
SDK: ${{ inputs.sdk }} | ||
STEP: CD | ||
SUBDIRS: ${{ inputs.subdirs }} | ||
|
||
GOOGLE_APPLICATION_CREDENTIALS: /tmp/gcp_access.json | ||
GOOGLE_CLOUD_PROJECT: ${{ secrets.project_id }} | ||
SA_KEY_CONTENT: ${{ secrets.sa_key_content }} | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.8' | ||
- name: install deps | ||
run: pip install -r requirements.txt | ||
working-directory: playground/infrastructure | ||
- name: Decode GCP credentials | ||
run: | | ||
echo "$SA_KEY_CONTENT" | base64 -d > $GOOGLE_APPLICATION_CREDENTIALS | ||
- name: Run ci_cd.py | ||
run: | | ||
python3 ci_cd.py \ | ||
--step $STEP \ | ||
--sdk SDK_${SDK^^} \ | ||
--origin $ORIGIN \ | ||
--subdirs $SUBDIRS | ||
working-directory: playground/infrastructure | ||
env: | ||
BEAM_ROOT_DIR: "../../" | ||
SDK_CONFIG: "../../playground/sdks.yaml" | ||
BEAM_EXAMPLE_CATEGORIES: "../categories.yaml" | ||
SERVER_ADDRESS: https://backend-${{ env.SDK }}-beta-dot-apache-beam-testing.appspot.com | ||
BEAM_USE_WEBGRPC: yes | ||
BEAM_CONCURRENCY: 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.