Skip to content

Commit

Permalink
feat: add GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
aleortega committed Jan 16, 2024
1 parent 7b31b81 commit 8dec8ee
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 0 deletions.
File renamed without changes.
14 changes: 14 additions & 0 deletions .github/workflows/docker-next.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: CI/CD on main branch

on:
push:
branches:
- "main"

jobs:
cd:
uses: decentraland/platform-actions/.github/workflows/apps-docker-next.yml@main
with:
service-name: lods-generator
deployment-environment: dev
secrets: inherit
14 changes: 14 additions & 0 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Publish 'latest' image

on:
release:
types:
- "created"

jobs:
cd:
uses: decentraland/platform-actions/.github/workflows/apps-docker-release.yml@main
with:
service-name: lods-generator
deployment-environment: prd
secrets: inherit
34 changes: 34 additions & 0 deletions .github/workflows/manual-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Manual deployment

on:
workflow_dispatch:
inputs:
deployment-environment:
required: true
type: choice
options:
- prd
- dev
default: prd
description: Environment
tag:
required: true
default: "latest"
type: string
description: "Docker tag (quay.io)"

jobs:
deployment:
if: ${{ inputs.deployment-environment }}
name: "Deploy to: ${{ inputs.deployment-environment }}"
runs-on: ubuntu-latest
environment: ${{ inputs.deployment-environment }}
steps:
- name: Trigger deployment
id: deploy
uses: decentraland/dcl-deploy-action@main
with:
dockerImage: "quay.io/decentraland/lods-generator:${{ inputs.tag }}"
serviceName: "lods-generator"
env: ${{ inputs.deployment-environment }}
token: ${{ secrets.GITHUB_TOKEN }}
11 changes: 11 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: CI/CD on PR

on:
pull_request:

jobs:
pr:
uses: decentraland/platform-actions/.github/workflows/apps-pr.yml@main
with:
service-name: lods-generator
secrets: inherit
9 changes: 9 additions & 0 deletions .github/workflows/validate-pr-title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: validate-pr-title

on:
pull_request:
types: [edited, opened, reopened, synchronize]

jobs:
title-matches-convention:
uses: decentraland/actions/.github/workflows/validate-pr-title.yml@main

0 comments on commit 8dec8ee

Please sign in to comment.