ref(workflows): align workflows with `zfnd` standards (#4)
This commit is contained in:
parent
81b47a200e
commit
036667e883
|
@ -2,18 +2,28 @@ version: 2
|
|||
updates:
|
||||
- package-ecosystem: docker
|
||||
directory: /docker
|
||||
pull-request-branch-name:
|
||||
separator: "-"
|
||||
schedule:
|
||||
interval: monthly
|
||||
commit-message:
|
||||
prefix: "deps(docker) "
|
||||
prefix: "deps(docker): "
|
||||
|
||||
- package-ecosystem: github-actions
|
||||
directory: /
|
||||
directory: "/"
|
||||
pull-request-branch-name:
|
||||
separator: "-"
|
||||
schedule:
|
||||
interval: monthly
|
||||
interval: weekly
|
||||
commit-message:
|
||||
prefix: "deps(actions) "
|
||||
prefix: "deps(actions): "
|
||||
groups:
|
||||
devops:
|
||||
docker:
|
||||
patterns:
|
||||
- "docker*"
|
||||
gcp:
|
||||
patterns:
|
||||
- "google-github-actions*"
|
||||
others:
|
||||
patterns:
|
||||
- "*"
|
||||
|
|
|
@ -2,7 +2,7 @@ name: Deploy to dev
|
|||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened, labeled]
|
||||
types: [ready_for_review, synchronize]
|
||||
paths:
|
||||
- '**/Dockerfile'
|
||||
- 'scripts/**'
|
||||
|
@ -36,6 +36,7 @@ permissions:
|
|||
jobs:
|
||||
build:
|
||||
uses: ./.github/workflows/sub-build-docker-image.yml
|
||||
if: ${{ !github.event.pull_request.draft }}
|
||||
with:
|
||||
environment: dev
|
||||
dockerfile_path: ./docker/Dockerfile
|
||||
|
|
|
@ -32,4 +32,4 @@ jobs:
|
|||
|
||||
- name: Removing CR service
|
||||
run: |
|
||||
gcloud run services delete ${{ vars.APP_NAME }}-${{ env.GITHUB_HEAD_REF_SLUG || env.GITHUB_REF_SLUG }} --region=${{ vars.GOOGLE_CLOUD_REGION }} --quiet
|
||||
gcloud run services delete ${{ vars.APP_NAME }}-${{ env.GITHUB_HEAD_REF_SLUG || env.GITHUB_REF_SLUG }} --region=${{ vars.GCP_REGION }} --quiet
|
||||
|
|
Loading…
Reference in New Issue