diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 56c7b66d..4afea0e5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,8 +21,7 @@ concurrency: group: "${{ github.workflow }}-${{ github.ref }}" cancel-in-progress: true -env: - REGISTRY: docker.io + jobs: build: runs-on: ubuntu-latest @@ -418,99 +417,4 @@ jobs: with: tag_name: ${{ github.event.inputs.version }} files: bin/* - body_path: release.md - - Docker: - if: ${{ !startsWith(github.event_name, 'pull_request') }} - permissions: write-all - needs: [build] - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - uses: actions/download-artifact@v4 - with: - path: bin/ - merge-multiple: true - - - name: Display structure of downloaded files - run: ls -R - working-directory: bin - - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - - name: Setup Docker buildx - uses: docker/setup-buildx-action@v3 - with: - version: latest - - # Extract metadata (tags, labels) for Docker - # https://github.com/docker/metadata-action - - name: Extract Docker metadata - if: ${{ github.event_name != 'workflow_dispatch' }} - id: meta_alpha - uses: docker/metadata-action@v5 - with: - images: '${{ env.REGISTRY }}/${{ github.repository }}' - - # Extract metadata (tags, labels) for Docker - # https://github.com/docker/metadata-action - - name: Extract Docker metadata - if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.version != '' }} - id: meta_release - uses: docker/metadata-action@v5 - with: - images: '${{ env.REGISTRY }}/${{ github.repository }}' - tags: | - ${{ github.event.inputs.version }} - flavor: | - latest=true - labels: org.opencontainers.image.version=${{ github.event.inputs.version }} - - - name: Show files - run: | - ls . - ls bin/ - - - name: login to docker REGISTRY - uses: docker/login-action@v3 - with: - registry: ${{ env.REGISTRY }} - username: ${{ secrets.DOCKER_HUB_USER }} - password: ${{ secrets.DOCKER_HUB_TOKEN }} - - # Build and push Docker image with Buildx (don't push on PR) - # https://github.com/docker/build-push-action - - name: Build and push Docker image - if: ${{ github.event_name != 'workflow_dispatch' }} - uses: docker/build-push-action@v5 - with: - context: . - file: ./Dockerfile - push: ${{ github.event_name != 'pull_request' }} - platforms: | - linux/386 - linux/amd64 - linux/arm64 - linux/arm/v7 - tags: ${{ steps.meta_alpha.outputs.tags }} - labels: ${{ steps.meta_alpha.outputs.labels }} - - - name: Build and push Docker image - if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.version != '' }} - uses: docker/build-push-action@v5 - with: - context: . - file: ./Dockerfile - push: ${{ github.event_name != 'pull_request' }} - platforms: | - linux/386 - linux/amd64 - linux/arm64 - linux/arm/v7 - tags: ${{ steps.meta_release.outputs.tags }} - labels: ${{ steps.meta_release.outputs.labels }} \ No newline at end of file + body_path: release.md \ No newline at end of file