diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b2f25ac..b30d3a8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,20 +2,20 @@ name: Build on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 - - name: Set up JDK 11 - uses: actions/setup-java@v4 - with: - java-version: '11' - distribution: 'temurin' - cache: maven - - name: Build with Maven - run: ./mvnw clean package \ No newline at end of file + - uses: actions/checkout@v4 # v4 + - name: Set up JDK 11 + uses: actions/setup-java@v4 + with: + java-version: "11" + distribution: "temurin" + cache: maven + - name: Build with Maven + run: ./mvnw clean package diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 4e35149..8580ea4 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -3,7 +3,7 @@ name: Push to Github Packages on: workflow_dispatch: push: - branches: [ main ] + branches: [main] env: REGISTRY: ghcr.io @@ -45,5 +45,5 @@ jobs: context: . platforms: linux/amd64,linux/arm64 push: true - #tags: ${{ steps.meta.outputs.tags }} + tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml deleted file mode 100644 index 4d528d6..0000000 --- a/.github/workflows/docker.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Push to Docker - -on: - push: - branches: [ "main" ] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - with: - platforms: all - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - name: Login to Docker Hub - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Build and push - uses: docker/build-push-action@v5 - with: - context: . - platforms: linux/amd64,linux/arm64 - push: true - tags: gcatanese/openapi-generator-postman-v2:latest