Skip to content

Commit

Permalink
new workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
lauti7 committed Apr 4, 2024
1 parent e14a648 commit bf15826
Show file tree
Hide file tree
Showing 6 changed files with 92 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: build

on:
push:

jobs:
build:
uses: decentraland/platform-actions/.github/workflows/apps-with-db-build.yml@main
15 changes: 15 additions & 0 deletions .github/workflows/docker-next.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: CI/CD on main branch

on:
push:
branches:
- 'main'

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

on:
release:
types:
- 'created'

jobs:
social-service-ea-deployment:
uses: decentraland/platform-actions/.github/workflows/apps-docker-release.yml@main
with:
service-name: social-service-ea
image-name: social-service-ea
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: Deploy

on:
workflow_dispatch:
inputs:
deployment-environment:
required: true
type: choice
options:
- dev
- prd
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 Quests Server deployment
id: deploy-server
uses: decentraland/dcl-deploy-action@main
with:
dockerImage: 'quay.io/decentraland/social-service-ea:${{ inputs.tag }}'
serviceName: 'social-service-ea'
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: social-service-ea
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 bf15826

Please sign in to comment.