Skip to content

Commit 5525625

Browse files
committed
chore: add workflows
1 parent 82c9af4 commit 5525625

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.github/workflows/build.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths-ignore:
8+
- "**.md"
9+
10+
jobs:
11+
build:
12+
name: Build
13+
uses: soat-tech-challenge/github-workflows/.github/workflows/maven-bump-push-dockerhub.yml@main
14+
secrets: inherit
15+
with:
16+
dockerhub_username: ${{ vars.DOCKERHUB_USERNAME }}
17+
image_name: ${{ vars.DOCKER_IMAGE_NAME }}
18+
19+
deploy:
20+
name: Deploy
21+
needs: build
22+
uses: soat-tech-challenge/github-workflows/.github/workflows/redeploy-ecs-service.yml@main
23+
secrets: inherit
24+
with:
25+
aws_region: ${{ vars.DEFAULT_AWS_REGION }}
26+
cluster_name: ${{ vars.ECS_CLUSTER_NAME }}
27+
service_name: ${{ vars.ECS_SERVICE_NAME }}

.github/workflows/pull-request.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Pull Request
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
jobs:
8+
build:
9+
name: Build
10+
uses: soat-tech-challenge/github-workflows/.github/workflows/maven-and-docker-build.yml@main
11+
secrets: inherit
12+
permissions:
13+
contents: read
14+
pull-requests: write

0 commit comments

Comments
 (0)