From 81e1eac9e44111594954825eb392e65864997d23 Mon Sep 17 00:00:00 2001 From: netkas Date: Fri, 16 May 2025 01:25:40 -0400 Subject: [PATCH] Supported build for now only --- .github/workflows/docker.yml | 42 +++--------------------------------- 1 file changed, 3 insertions(+), 39 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index cfcb5f1..38a7f6d 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -13,7 +13,7 @@ permissions: contents: read jobs: - build-and-save: + build: runs-on: ubuntu-latest if: github.event_name == 'push' steps: @@ -34,43 +34,7 @@ jobs: docker save $IMAGE_NAME:${{ github.sha }} > docker-image-${{ github.sha }}.tar - name: Upload artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 # Updated to v4 with: name: docker-image-${{ github.sha }} - path: docker-image-${{ github.sha }}.tar - - build-and-push: - runs-on: ubuntu-latest - if: github.event_name == 'release' - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Log in to GitHub Container Registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Log in to Docker Hub - uses: docker/login-action@v2 - with: - registry: docker.io - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASSWORD }} - - - name: Build and push Docker image - uses: docker/build-push-action@v5 - with: - context: . - file: Dockerfile - tags: | - ghcr.io/${{ github.repository }}:${{ github.event.release.tag_name }} - ghcr.io/${{ github.repository }}:latest - docker.io/your-dockerhub-username:${{ github.event.release.tag_name }} - docker.io/your-dockerhub-username:latest - push: true \ No newline at end of file + path: docker-image-${{ github.sha }}.tar \ No newline at end of file