diff --git a/.github/workflows/main.yml b/.github/workflows/dev.yml similarity index 82% rename from .github/workflows/main.yml rename to .github/workflows/dev.yml index 54bdde0..638bcf5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/dev.yml @@ -2,10 +2,7 @@ name: Build and Push to Registry on: push: - branches: [ main ] - pull_request: - types: [closed] - branches: [ main ] + branches: [ dev ] env: REGISTRY: git.4nkweb.com @@ -14,7 +11,6 @@ env: jobs: build-and-push: runs-on: ubuntu-latest - if: github.event.pull_request.merged == true || github.event_name == 'push' steps: - name: Checkout repository uses: actions/checkout@v4 @@ -36,4 +32,5 @@ jobs: push: true tags: | ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:dev ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ gitea.sha }} \ No newline at end of file