chore: remove shorebird_code_push_api (#51)
This commit is contained in:
@@ -1,61 +0,0 @@
|
||||
name: deploy_shorebird_code_push_api
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- ".github/workflows/deploy_shorebird_code_push_api.yaml"
|
||||
- "packages/shorebird_code_push_api/bin/**"
|
||||
- "packages/shorebird_code_push_api/lib/**"
|
||||
- "packages/shorebird_code_push_api/test/**"
|
||||
- "packages/shorebird_code_push_api/pubspec.yaml"
|
||||
|
||||
env:
|
||||
PROJECT_ID: shorebird-code-push-api
|
||||
SERVICE: shorebird-code-push-api
|
||||
REGION: us-central1
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
defaults:
|
||||
run:
|
||||
working-directory: packages/shorebird_code_push_api
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Setup Cloud SDK
|
||||
uses: google-github-actions/setup-gcloud@v0.2.0
|
||||
with:
|
||||
project_id: ${{ env.PROJECT_ID }}
|
||||
service_account_key: ${{ secrets.CLOUD_RUN_SA }}
|
||||
export_default_credentials: true
|
||||
|
||||
- name: Authorize Docker Push
|
||||
run: gcloud auth configure-docker
|
||||
|
||||
- name: Build and Push Container
|
||||
run: |-
|
||||
docker build -t gcr.io/${{ env.PROJECT_ID }}/${{ env.SERVICE }}:${{ github.sha }} .
|
||||
docker push gcr.io/${{ env.PROJECT_ID }}/${{ env.SERVICE }}:${{ github.sha }}
|
||||
|
||||
- name: Deploy to Cloud Run
|
||||
id: deploy
|
||||
uses: google-github-actions/deploy-cloudrun@v0.4.0
|
||||
with:
|
||||
service: ${{ env.SERVICE }}
|
||||
image: gcr.io/${{ env.PROJECT_ID }}/${{ env.SERVICE }}:${{ github.sha }}
|
||||
region: ${{ env.REGION }}
|
||||
|
||||
- name: Show Output
|
||||
run: echo ${{ steps.deploy.outputs.url }}
|
||||
|
||||
- name: Ping
|
||||
run: curl "${{ steps.deploy.outputs.url }}"
|
||||
@@ -31,10 +31,7 @@ jobs:
|
||||
shorebird_cli:
|
||||
- ./.github/actions/dart_package
|
||||
- packages/shorebird_cli/**
|
||||
- packages/shorebird_code_push_api_client/**
|
||||
shorebird_code_push_api:
|
||||
- ./.github/actions/dart_package
|
||||
- packages/shorebird_code_push_api/**
|
||||
- packages/shorebird_code_push_api_client/**
|
||||
shorebird_code_push_api_client:
|
||||
- ./.github/actions/dart_package
|
||||
- packages/shorebird_code_push_api_client/**
|
||||
|
||||
Reference in New Issue
Block a user