Skip to content

Commit

Permalink
change build.gradle and workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Fagorym committed Oct 14, 2023
1 parent 7a53bef commit 467c728
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Publish Docker image
on:
push:
branches:
- 'main'
- 'develop'
- "main"
- "develop"

jobs:
push_to_registry:
Expand All @@ -24,12 +24,21 @@ jobs:
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: my-docker-hub-namespace/my-docker-hub-repository
images: fagorym/delivery-service

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
with:
image: tonistiigi/binfmt:latest

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/arm64
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ configurations {
extendsFrom annotationProcessor
}
}
springBoot {
mainClass = "ru.nsu.fit.directors.deliveryservice.DeliveryServiceApplication"
}

repositories {
mavenCentral()
Expand Down

0 comments on commit 467c728

Please sign in to comment.