Skip to content

Commit

Permalink
ref(workflows): align workflows with zfnd standards (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavovalverde authored Jul 29, 2024
1 parent 81b47a2 commit 036667e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
20 changes: 15 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
- "*"
3 changes: 2 additions & 1 deletion .github/workflows/cd-deploy-to-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy to dev

on:
pull_request:
types: [opened, synchronize, reopened, labeled]
types: [ready_for_review, synchronize]
paths:
- '**/Dockerfile'
- 'scripts/**'
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/chore-clean-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 036667e

Please sign in to comment.