diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 63b1048..b7f3d79 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,7 @@ jobs: cache: "gradle" - name: Build project - run: ./gradlew clean build + run: ./gradlew clean assemble - name: Login to Docker Hub uses: docker/login-action@v2 @@ -30,12 +30,13 @@ jobs: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_TOKEN }} - - name: Build images - timeout-minutes: 10 - run: docker compose build - - - name: Push images - run: docker compose push + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: . + platforms: linux/amd64,linux/arm64 + tags: romanowalex/data-migration-job:${{ github.ref_name }} + push: true - name: Create release uses: softprops/action-gh-release@v2