Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Merge pull request #56 from Eukon05/dependabot/github_actions/actions… #69

Merge pull request #56 from Eukon05/dependabot/github_actions/actions…

Merge pull request #56 from Eukon05/dependabot/github_actions/actions… #69

Workflow file for this run

name: Build
on:
push:
branches: [ master ]
paths:
- 'src/**'
- 'pom.xml'
- 'Dockerfile'
- '.github/workflows/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
- name: Build with Maven
run: mvn --batch-mode --update-snapshots clean package
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/dilan:latest
platforms: linux/amd64,linux/arm64/v8