ref(workflows): align workflows with `zfnd` standards (#4)

This commit is contained in:
Gustavo Valverde 2024-07-29 18:11:34 +01:00 committed by GitHub
parent 81b47a200e
commit 036667e883
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 18 additions and 7 deletions

View File

@ -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:
- "*"

View File

@ -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

View File

@ -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