Skip to content

fix(workflows/deploy): remove docker caching #4

fix(workflows/deploy): remove docker caching

fix(workflows/deploy): remove docker caching #4

Workflow file for this run

name: Deploy
on:
push:
branches:
- master
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'zulu' # Alternative distribution options are available
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Login to Docker Hub
run: docker login -u ${{ secrets.DOCKER_HUB_USER }} --password-stdin <<<<'${{ secrets.DOCKER_HUB_TOKEN }}'
- name: Build project
run: ./gradlew bootWar
- name: Build image
run: docker compose build
- name: Push image
run: docker compose push