Skip to content

Commit

Permalink
Merge pull request #217 from fyntex/develop
Browse files Browse the repository at this point in the history
Deploy release v0.5.0
  • Loading branch information
fpinto-cdd authored Mar 7, 2023
2 parents 4c20947 + c6cf977 commit f426fbd
Show file tree
Hide file tree
Showing 17 changed files with 507 additions and 179 deletions.
4 changes: 2 additions & 2 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[bumpversion]
current_version = 0.4.0
current_version = 0.5.0
commit = True
tag = True
tag = False

[bumpversion:file:fd_dj_accounts/__init__.py]
159 changes: 0 additions & 159 deletions .circleci/config.yml

This file was deleted.

10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,13 @@ updates:
open-pull-requests-limit: 3
labels:
- dependencies

- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
commit-message:
prefix: "chore:"
labels:
- dependencies
open-pull-requests-limit: 5
76 changes: 76 additions & 0 deletions .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# GitHub Actions Workflow for Continuous Integration and Continuous Delivery
#
# Documentation:
# - https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
# - https://docs.github.com/en/actions/learn-github-actions/contexts
# - https://docs.github.com/en/actions/learn-github-actions/expressions
# - https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
# - https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
# - https://docs.github.com/en/actions/using-workflows/reusing-workflows

name: CI/CD

on:
push:

permissions:
contents: write

env:
PRODUCTION_VCS_REF: refs/heads/master
STAGING_VCS_REF: refs/heads/develop

jobs:
# -----BEGIN Workflow Configuration Job-----
workflow_config:
name: Workflow Configuration
runs-on: ubuntu-22.04

outputs:
PRODUCTION_VCS_REF: ${{ env.PRODUCTION_VCS_REF }}
STAGING_VCS_REF: ${{ env.STAGING_VCS_REF }}

steps:
- run: "true"

# -----END Workflow Configuration Job-----

# -----BEGIN CI Job-----
ci:
name: CI
needs:
- workflow_config

uses: ./.github/workflows/ci.yaml

# -----END CI Job-----

# -----BEGIN Release Job-----
release:
name: Release
if: ${{ github.ref == needs.workflow_config.outputs.PRODUCTION_VCS_REF }}
needs:
- ci
- workflow_config

uses: ./.github/workflows/release.yaml
with:
create_git_tag_and_github_release: ${{ github.ref == needs.workflow_config.outputs.PRODUCTION_VCS_REF }}

# -----END Release Job-----

# -----BEGIN Deploy Job-----
deploy:
name: Deploy
if: ${{ github.ref == needs.workflow_config.outputs.PRODUCTION_VCS_REF }}
needs:
- release
- workflow_config

uses: ./.github/workflows/deploy.yaml
with:
deploy_env: prod
artifacts_path: ${{ needs.release.outputs.artifacts_path }}
secrets: inherit

# -----END Deploy Job-----
Loading

0 comments on commit f426fbd

Please sign in to comment.