Turn off the project workflow, reorg some CI jobs (#451)

* Remove 'assign to project' workflow

Doesn't work with external PRs.

* Reorg CI jobs a bit

* Also upgrade gcloud sdk to version 295.0.0
This commit is contained in:
Deirdre Connolly 2020-06-08 21:03:51 -04:00 committed by GitHub
parent 42cc55b0bb
commit d61cf27d74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 45 deletions

View File

@ -1,24 +0,0 @@
name: Project
on:
issues:
types: [opened]
pull_request:
types: [opened]
jobs:
assign:
runs-on: ubuntu-latest
steps:
- uses: alex-page/github-project-automation-plus@v0.2.4
if: github.event_name == 'issues' && github.event.action == 'opened'
with:
project: Zebra
column: To Do
repo-token: ${{ secrets.PROJECT_AUTOMATION }}
- uses: alex-page/github-project-automation-plus@v0.2.4
if: github.event_name == 'pull_request' && github.event.action == 'opened'
with:
project: Zebra
column: In progress
repo-token: ${{ secrets.PROJECT_AUTOMATION }}

View File

@ -1,34 +1,14 @@
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: Google Cloud Build
# This is a pull request, and gcloud would fail for external PRs.
if: (!github.head_ref) || (!github.base_ref)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
with:
version: '275.0.0'
service_account_key: ${{ secrets.GCLOUD_AUTH }}
- name: Build, Test, Push to GCR
run: |
BRANCH_NAME=$GITHUB_REPOSITORY/$(expr $GITHUB_REF : '.*/\(.*\)') && \
BRANCH_NAME=${BRANCH_NAME,,} && \
gcloud builds submit . --config cloudbuild.yaml --project zealous-zebra --substitutions BRANCH_NAME=$BRANCH_NAME
test:
name: Build and test on ${{ matrix.os }}
name: Build & test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:

20
.github/workflows/push.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: CI
on:
push:
jobs:
build:
name: Google Cloud Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
with:
version: '295.0.0'
service_account_key: ${{ secrets.GCLOUD_AUTH }}
- name: Build, Test, Push to GCR
run: |
BRANCH_NAME=$GITHUB_REPOSITORY/$(expr $GITHUB_REF : '.*/\(.*\)') && \
BRANCH_NAME=${BRANCH_NAME,,} && \
gcloud builds submit . --config cloudbuild.yaml --project zealous-zebra --substitutions BRANCH_NAME=$BRANCH_NAME