Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 4.6k
GA migration PreCommit Website#23405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
03953d8d0d9bc42863a91ffc52fd9678573ee2c35f774a188ba6f16bda806ac763c9d03e434d8File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| # 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. | ||
| # This workflow will run Typescript PreCommit. | ||
| name: Typescript | ||
| on: | ||
| workflow_dispatch: | ||
| schedule: | ||
| - cron: '0 */6 * * *' | ||
| push: | ||
| branches: ['master', 'release-*'] | ||
| tags: 'v*' | ||
| pull_request_target: | ||
| branches: ['master', 'release-*'] | ||
| tags: 'v*' | ||
| paths: ['sdks/python/apache_beam/runners/interactive/extensions/**'] | ||
| permissions: read-all | ||
| jobs: | ||
| typescript: | ||
| name: Typescript | ||
| runs-on: [self-hosted, ubuntu-20.04] | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v3 | ||
| with: | ||
| ref: ${{ github.event.pull_request.head.sha }} | ||
| persist-credentials: false | ||
| - name: Setup environment | ||
| uses: ./.github/actions/setup-self-hosted-action | ||
| with: | ||
| requires-go-18: false | ||
| - name: Run :typescriptPreCommit | ||
| uses: ./.github/actions/gradle-command-self-hosted-action | ||
| with: | ||
| gradle-command: :typescriptPreCommit |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| # 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. | ||
| # This workflow will run the Website in Stage GCS. | ||
| name: Website Stage GCS | ||
| on: | ||
| workflow_dispatch: | ||
| schedule: | ||
| - cron: '0 */6 * * *' | ||
| push: | ||
| branches: ['master', 'release-*'] | ||
| tags: 'v*' | ||
| pull_request_target: | ||
| branches: ['master', 'release-*'] | ||
| tags: 'v*' | ||
| paths: ['website/**'] | ||
| permissions: read-all | ||
| jobs: | ||
| website-stage-gcs: | ||
| name: Run Website Stage in GCS | ||
| runs-on: [self-hosted, ubuntu-20.04] | ||
| steps: | ||
| - name: Checking out composite to setup service account | ||
| uses: actions/checkout@v3 | ||
| with: | ||
| ref: master | ||
| - name: Setup service account | ||
| uses: ./.github/actions/activate-service-account | ||
| with: | ||
| GCP_SERVICE_ACCOUNT: ${{secrets.GCP_SELF_HOSTED_SA_KEY}} | ||
| - name: Checkout code | ||
| uses: actions/checkout@v3 | ||
| with: | ||
| ref: ${{ github.event.pull_request.head.sha }} | ||
| persist-credentials: false | ||
| - name: Setup environment | ||
| uses: ./.github/actions/setup-self-hosted-action | ||
| with: | ||
| requires-go-18: false | ||
| - name: Run :website:stageWebsite | ||
| uses: ./.github/actions/gradle-command-self-hosted-action | ||
| env: # TODO(https://github.com/apache/beam/issues/23580) Rename ghprb env vars to a more GHA concept. | ||
| ghprbPullId: ${{github.event.pull_request.number}} | ||
| ghprbPullAuthorLogin: ${{github.actor}} | ||
| ghprbSourceBranch: ${{github.ref_name}} | ||
| ghBranch: ${{github.head_ref}} | ||
| repositoryUrl: ${{github.repository}} | ||
| with: | ||
| gradle-command: :website:stageWebsite | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| # 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. | ||
| # This workflow will run Website PreCommit. | ||
| name: Website | ||
| on: | ||
| workflow_dispatch: | ||
| schedule: | ||
| - cron: '0 */6 * * *' | ||
| push: | ||
| branches: ['master', 'release-*'] | ||
| tags: 'v*' | ||
| pull_request_target: | ||
| branches: ['master', 'release-*'] | ||
| tags: 'v*' | ||
| paths: ['website/**'] | ||
| permissions: read-all | ||
| jobs: | ||
| website: | ||
| name: website | ||
| runs-on: [self-hosted, ubuntu-20.04] | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v3 | ||
| with: | ||
| ref: ${{ github.event.pull_request.head.sha }} | ||
| persist-credentials: false | ||
| - name: Setup environment | ||
| uses: ./.github/actions/setup-self-hosted-action | ||
| with: | ||
| requires-go-18: false | ||
| requires-py-37: false | ||
| requires-py-38: false | ||
| requires-py-39: false | ||
| - name: Run :websitePreCommit | ||
| uses: ./.github/actions/gradle-command-self-hosted-action | ||
| env: # TODO(https://github.com/apache/beam/issues/23580) Rename ghprb env vars to a more GHA concept. | ||
| ghprbPullId: ${{github.event.pull_request.number}} | ||
| ghprbPullAuthorLogin: ${{github.actor}} | ||
| ghprbSourceBranch: ${{github.ref_name}} | ||
| ghBranch: ${{github.head_ref}} | ||
| repositoryUrl: ${{github.repository}} | ||
| with: | ||
| gradle-command: :websitePreCommit |
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -69,4 +69,29 @@ RUN HUGOHOME="$(mktemp -d)" \ | ||
| && chmod +x /usr/local/bin/hugo \ | ||
| && rm -r "${HUGOHOME}" | ||
| # Install gcloud | ||
| # Make sure that your operating system meets the requirements | ||
damccorm marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| # Add the gcloud CLI distribution URI as a package source | ||
| RUN apt-get install apt-transport-https ca-certificates gnupg | ||
| RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list | ||
| # Import the Google Cloud public key | ||
| RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - | ||
| # Update and install the gcloud CLI | ||
| RUN apt-get update && apt-get install google-cloud-cli | ||
| # #Installing and replacing default python version | ||
| RUN apt install -y build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libsqlite3-dev libreadline-dev libffi-dev curl libbz2-dev \ | ||
| && curl -O https://www.python.org/ftp/python/3.8.2/Python-3.8.2.tar.xz \ | ||
| && tar -xf Python-3.8.2.tar.xz \ | ||
| && cd Python-3.8.2 && ./configure --enable-optimizations \ | ||
| && make -j 4 && make altinstall | ||
| RUN update-alternatives --install /usr/bin/python python /usr/local/bin/python3.8 1\ | ||
| && update-alternatives --install /usr/bin/python python /usr/bin/python3.5 2 \ | ||
| && update-alternatives --set python $(update-alternatives --list python | grep python3.8) | ||
| # Add dedicated user to have permissions on opt dir | ||
| RUN useradd -m actions && usermod -aG sudo actions && echo "%sudo ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers | ||
| RUN chown -R actions:actions /opt/ | ||
| WORKDIR /opt/ | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.