Skip to content

Commit

Permalink
NEW: Move reusable workflows to separate repository
Browse files Browse the repository at this point in the history
  • Loading branch information
gmmcal committed May 17, 2024
1 parent 48da1d9 commit fb57267
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 334 deletions.
49 changes: 0 additions & 49 deletions .github/workflows/_cypress.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/_deploy.yml

This file was deleted.

53 changes: 0 additions & 53 deletions .github/workflows/_docker.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/_lint.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/_preview.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/_release.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/_tag.yml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/_tests.yml

This file was deleted.

41 changes: 6 additions & 35 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Deploy

on:
workflow_dispatch:
push:
branches:
- main
Expand All @@ -12,11 +13,11 @@ concurrency:
jobs:
tag:
name: "Tag: Production"
uses: ./.github/workflows/_tag.yml
uses: gmmcal/gmmcal-reusable-workflows/.github/workflows/_tag.yml@move-workflows

build_production:
name: Build
uses: ./.github/workflows/_docker.yml
uses: gmmcal/gmmcal-reusable-workflows/.github/workflows/_docker.yml@move-workflows
needs: tag
secrets: inherit
with:
Expand All @@ -27,7 +28,7 @@ jobs:

build_development:
name: Build
uses: ./.github/workflows/_docker.yml
uses: gmmcal/gmmcal-reusable-workflows/.github/workflows/_docker.yml@move-workflows
secrets: inherit
with:
name: Development
Expand All @@ -36,31 +37,17 @@ jobs:

deploy_staging:
name: Deploy
uses: ./.github/workflows/_deploy.yml
uses: gmmcal/gmmcal-reusable-workflows/.github/workflows/_deploy.yml@move-workflows
secrets: inherit
needs: build_production
with:
name: Staging
environment: staging
url: https://staging.gustavocunha.dev
# name: "Deploy / Staging"
# runs-on: ubuntu-20.04
# environment:
# name: staging
# url: https://staging.gustavocunha.dev
# needs: build_production

# steps:
# - name: Deploy
# env:
# DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
# DEPLOY_SERVICE: ${{ secrets.DEPLOY_SERVICE }}
# run: |
# curl "https://api.render.com/deploy/srv-$DEPLOY_SERVICE?key=$DEPLOY_KEY"

deploy_production:
name: Deploy
uses: ./.github/workflows/_deploy.yml
uses: gmmcal/gmmcal-reusable-workflows/.github/workflows/_deploy.yml@move-workflows
secrets: inherit
needs:
- build_production
Expand All @@ -70,19 +57,3 @@ jobs:
environment: production
url: https://www.gustavocunha.dev
params: imgURL=docker.io/gmmcal/gmmcal:${{needs.tag.outputs.version}}
# name: "Deploy / Production"
# runs-on: ubuntu-20.04
# environment:
# name: production
# url: https://www.gustavocunha.dev
# needs:
# - build_production
# - tag

# steps:
# - name: Deploy
# env:
# DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
# DEPLOY_SERVICE: ${{ secrets.DEPLOY_SERVICE }}
# run: |
# curl "https://api.render.com/deploy/srv-$DEPLOY_SERVICE?key=$DEPLOY_KEY&imgURL=docker.io/gmmcal/gmmcal:${{needs.tag.outputs.version}}"
Loading

0 comments on commit fb57267

Please sign in to comment.