Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/cdk-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,23 @@ jobs:
cache: 'npm'
cache-dependency-path: 'cdk/package-lock.json'

- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '25'
distribution: corretto
cache: maven

- name: Install CDK dependencies
working-directory: ./cdk
run: npm ci

- name: Install AWS CDK CLI
run: npm install -g aws-cdk

- name: Build with Maven
run: mvn -B --no-transfer-progress clean package

- name: CDK Deploy
working-directory: ./cdk
run: cdk deploy --require-approval never
15 changes: 6 additions & 9 deletions .github/workflows/maven.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,10 @@ jobs:
- name: Build with Maven
run: mvn -B --no-transfer-progress clean package

- name: Upload artifact [uber-jar]
uses: actions/upload-artifact@v4
with:
name: uber-jar
path: target/*-jar-with-dependencies.jar
if-no-files-found: error
retention-days: 7

- name: Build and push docker image [edge]
run: docker buildx build --push -t ghcr.io/javabin/cake-redux:edge --platform linux/amd64,linux/arm64 .
if: github.ref == 'refs/heads/master'
run: docker buildx build --push -t ghcr.io/javabin/cake-redux:edge --platform linux/amd64,linux/arm64 .

- name: Build docker image [edge]
if: github.ref != 'refs/heads/master'
run: docker buildx build -t ghcr.io/javabin/cake-redux:edge --platform linux/amd64,linux/arm64 .