diff --git a/.github/workflows/docker-image.yml b/.github/workflows/apache-docker-image.yml similarity index 68% rename from .github/workflows/docker-image.yml rename to .github/workflows/apache-docker-image.yml index 06faf55f..44f8f798 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/apache-docker-image.yml @@ -1,15 +1,15 @@ -name: Build and Push Docker Images +name: Build and Push Apache Docker Image on: push: - branches: - - main + paths: + - 'docker/apache/**' pull_request: - branches: - - main + paths: + - 'docker/apache/**' jobs: - build-and-push: + build-and-push-apache: runs-on: ubuntu-latest env: @@ -28,13 +28,6 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Build and push Nginx image - uses: docker/build-push-action@v3 - with: - context: ./docker/nginx - push: true - tags: openpanel/nginx:latest - - name: Build and push Apache image uses: docker/build-push-action@v3 with: