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