diff --git a/.github/workflows/release.yml b/.github/workflows/build.yml similarity index 87% rename from .github/workflows/release.yml rename to .github/workflows/build.yml index 25306dd..1d41c03 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/build.yml @@ -1,8 +1,11 @@ -name: Build on Release +name: Build Docker Image on: + workflow_dispatch: + # Manual trigger release: types: [created] + # Automatic trigger on release creation jobs: build: diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml deleted file mode 100644 index bcfa888..0000000 --- a/.github/workflows/manual.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Build Manually - -on: - workflow_dispatch: - -jobs: - build: - runs-on: ubuntu-latest - - permissions: - contents: read - packages: write - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - - name: Login to GitHub Container Registry - uses: docker/login-action@v1 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build and push Docker image - uses: docker/build-push-action@v2 - with: - context: . - push: true - platforms: linux/amd64, linux/arm64/v8, linux/arm/v7 - tags: ghcr.io/marcus7i/saucekudasai:${{ github.ref_name }},ghcr.io/marcus7i/saucekudasai:latest \ No newline at end of file