Skip to content

Merge pull request #17 from toolforgeio/dependabot/maven/io.fabric8-d… #11

Merge pull request #17 from toolforgeio/dependabot/maven/io.fabric8-d…

Merge pull request #17 from toolforgeio/dependabot/maven/io.fabric8-d… #11

Workflow file for this run

name: toolforge
on:
push:
branches:
- main
permissions:
contents: read
env:
AWS_ACCOUNT_ID: ${{ vars.TOOLFORGE_AWS_ACCOUNT_ID }}
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'corretto'
- name: Cache local Maven repository
uses: actions/[email protected]
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Login to ToolForge Docker
uses: toolforgeio-actions/toolforge-docker-login@v1
with:
api-key: ${{ secrets.TOOLFORGE_API_KEY }}
- name: Build and Deploy to ToolForge
run: mvn -B clean compile install docker:push