Deployment 0.0.1 #25
29
.github/workflows/build-and-deploy.yml
vendored
29
.github/workflows/build-and-deploy.yml
vendored
|
@ -26,13 +26,32 @@ jobs:
|
|||
|
||||
- run: mkdir ./target
|
||||
|
||||
- name: Build with Maven
|
||||
run: mvn -f tapas-tasks/pom.xml --batch-mode --update-snapshots verify
|
||||
- run: cp ./tapas-tasks/target/tapas-tasks-0.0.1-SNAPSHOT.jar ./target
|
||||
- name: Cache Maven packages
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/.m2
|
||||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: ${{ runner.os }}-m2
|
||||
|
||||
- name: Build with Maven
|
||||
run: mvn -f app/pom.xml --batch-mode --update-snapshots verify
|
||||
- run: cp ./app/target/app-0.1.0.jar ./target
|
||||
run: mvn -f assignment/pom.xml --batch-mode --update-snapshots verify
|
||||
- run: cp ./assignment/target/assignment-0.0.1-SNAPSHOT.jar ./target
|
||||
|
||||
- name: Build with Maven
|
||||
run: mvn -f executor-pool/pom.xml --batch-mode --update-snapshots verify
|
||||
- run: cp ./executor-pool/target/executor-pool-0.0.1.jar ./target
|
||||
|
||||
- name: Build with Maven
|
||||
run: mvn -f executor1/pom.xml --batch-mode --update-snapshots verify
|
||||
- run: cp ./executor1/target/executor1-0.0.1.jar ./target
|
||||
|
||||
- name: Build with Maven
|
||||
run: mvn -f executor2/pom.xml --batch-mode --update-snapshots verify
|
||||
- run: cp ./executor2/target/executor2-0.0.1.jar ./target
|
||||
|
||||
- name: Build with Maven
|
||||
run: mvn -f tapas-tasks/pom.xml --batch-mode --update-snapshots verify
|
||||
- run: cp ./tapas-tasks/target/tapas-tasks-0.0.1.jar ./target
|
||||
|
||||
- run: cp ./.deployment/docker-compose.yml ./target
|
||||
- name: Archive artifacts
|
||||
|
|
4
.github/workflows/ci.executor1.yml
vendored
4
.github/workflows/ci.executor1.yml
vendored
|
@ -3,10 +3,12 @@ on:
|
|||
push:
|
||||
branches: [main, dev]
|
||||
paths:
|
||||
- "executor-base/**"
|
||||
- "executor1/**"
|
||||
pull_request:
|
||||
branches: [main, dev]
|
||||
paths:
|
||||
- "executor-base/**"
|
||||
- "executor1/**"
|
||||
|
||||
workflow_dispatch:
|
||||
|
@ -34,6 +36,8 @@ jobs:
|
|||
path: ~/.m2
|
||||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: ${{ runner.os }}-m2
|
||||
- name: Build executorBase
|
||||
run: mvn -f executor-base/pom.xml -B verify
|
||||
- name: Build and analyze
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
4
.github/workflows/ci.executor2.yml
vendored
4
.github/workflows/ci.executor2.yml
vendored
|
@ -3,10 +3,12 @@ on:
|
|||
push:
|
||||
branches: [main, dev]
|
||||
paths:
|
||||
- "executor-base/**"
|
||||
- "executor2/**"
|
||||
pull_request:
|
||||
branches: [main, dev]
|
||||
paths:
|
||||
- "executor-base/**"
|
||||
- "executor2/**"
|
||||
|
||||
workflow_dispatch:
|
||||
|
@ -34,6 +36,8 @@ jobs:
|
|||
path: ~/.m2
|
||||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: ${{ runner.os }}-m2
|
||||
- name: Build executorBase
|
||||
run: mvn -f executor-base/pom.xml -B verify
|
||||
- name: Build and analyze
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
Loading…
Reference in New Issue
Block a user