Skip to content

Commit

Permalink
chore: add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
g-otn committed Jan 22, 2024
1 parent 229e537 commit de23ecf
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build

on:
push:
branches:
- main
paths-ignore:
- "**.md"

jobs:
build:
name: Build
uses: soat-tech-challenge/github-workflows/.github/workflows/maven-bump-push-dockerhub.yml@main
secrets: inherit
with:
dockerhub_username: ${{ vars.DOCKERHUB_USERNAME }}
image_name: ${{ vars.DOCKER_IMAGE_NAME }}

deploy:
name: Deploy
needs: build
uses: soat-tech-challenge/github-workflows/.github/workflows/redeploy-ecs-service.yml@main
secrets: inherit
with:
aws_region: ${{ vars.DEFAULT_AWS_REGION }}
cluster_name: ${{ vars.ECS_CLUSTER_NAME }}
service_name: ${{ vars.ECS_SERVICE_NAME }}
14 changes: 14 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Pull Request

on:
pull_request:
workflow_dispatch:

jobs:
build:
name: Build
uses: soat-tech-challenge/github-workflows/.github/workflows/maven-and-docker-build.yml@main
secrets: inherit
permissions:
contents: read
pull-requests: write

0 comments on commit de23ecf

Please sign in to comment.