diff --git a/.gitea/build.deploy b/.gitea/build.yml similarity index 96% rename from .gitea/build.deploy rename to .gitea/build.yml index 29f5314..5eb7bd8 100644 --- a/.gitea/build.deploy +++ b/.gitea/build.yml @@ -1,39 +1,39 @@ -name: Build and Push Docker Image to Gitea Registry - -on: - push: - branches: - - main - workflow_dispatch: - -jobs: - build-and-push: - runs-on: ubuntu-latest - steps: - # Step 1: Checkout repository - - name: Checkout code - uses: actions/checkout@v4 - - # Step 2: Set up Docker Buildx - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - # Step 3: Log in to Gitea Container Registry - - name: Log in to Gitea Registry - uses: docker/login-action@v3 - with: - registry: git.3t.network - username: $alex - password: ${{ secrets.PACKAGEKEY }} - - # Step 4: Build and push Docker image - - name: Build and push Docker image - uses: docker/build-push-action@v5 - with: - context: . - push: true - tags: | - git.3t.network/${{ github.repository }}/static-site:${{ github.sha }} - git.3t.network/${{ github.repository }}/static-site:latest - cache-from: type=gha +name: Build and Push Docker Image to Gitea Registry + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + build-and-push: + runs-on: ubuntu-latest + steps: + # Step 1: Checkout repository + - name: Checkout code + uses: actions/checkout@v4 + + # Step 2: Set up Docker Buildx + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + # Step 3: Log in to Gitea Container Registry + - name: Log in to Gitea Registry + uses: docker/login-action@v3 + with: + registry: git.3t.network + username: $alex + password: ${{ secrets.PACKAGEKEY }} + + # Step 4: Build and push Docker image + - name: Build and push Docker image + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: | + git.3t.network/${{ github.repository }}/static-site:${{ github.sha }} + git.3t.network/${{ github.repository }}/static-site:latest + cache-from: type=gha cache-to: type=gha,mode=max \ No newline at end of file