Skip to content

update docker-compose example #20

update docker-compose example

update docker-compose example #20

Workflow file for this run

name: build
on:
push:
branches:
- main
jobs:
test_and_build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
cache: 'gradle'
- run: ./gradlew test --no-daemon
- run: ./gradlew bootJar
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: "ghcr.io/${{ github.repository }}:dev"