diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index d97354f..9b3e6b8 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -5,7 +5,7 @@ on: tags: - 'v*' jobs: - build: + create-release: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index dfcac0c..fd07fb0 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -5,7 +5,7 @@ on: tags: [ 'v*.*.*' ] jobs: - docker: + docker-publish-image: runs-on: ubuntu-latest steps: - name: Login to Docker Hub @@ -17,5 +17,7 @@ jobs: - name: Build and push uses: docker/build-push-action@v5 with: + context: . + file: ./Dockerfile push: true tags: laurocorreia/alura-flix-api:latest \ No newline at end of file diff --git a/src/main/java/com/alura/aluraflixapi/infraestructure/mapper/VideoMapper.java b/src/main/java/com/alura/aluraflixapi/infraestructure/mapper/VideoMapper.java index c48054d..7b09d21 100644 --- a/src/main/java/com/alura/aluraflixapi/infraestructure/mapper/VideoMapper.java +++ b/src/main/java/com/alura/aluraflixapi/infraestructure/mapper/VideoMapper.java @@ -4,7 +4,6 @@ import com.alura.aluraflixapi.domain.video.dto.UpdateVideoDto; import com.alura.aluraflixapi.domain.video.dto.VideoDto; import org.mapstruct.Mapper; -import org.springframework.data.domain.PageImpl; import java.util.List; @@ -15,9 +14,9 @@ public interface VideoMapper { VideoDto mapToVideoDto(Video video); - UpdateVideoDto mapUpdateVideoDto(Video updateDto); + UpdateVideoDto mapToUpdateVideoDto(Video model); - Video mapUpdateVideoToModel(UpdateVideoDto updateVideoDto); + Video mapToModel(UpdateVideoDto updateVideoDto); List maptoList(List