diff --git a/.github/workflows/buildx.yml b/.github/workflows/buildx.yml index 5754789..54ec0be 100644 --- a/.github/workflows/buildx.yml +++ b/.github/workflows/buildx.yml @@ -1,42 +1,42 @@ -# name: ci +name: ci -# on: -# push: -# branches: -# - "main" +on: + push: + branches: + - "main" -# env: -# TEST_TAG: user/app:test -# LATEST_TAG: user/app:latest +env: + TEST_TAG: user/app:test + LATEST_TAG: user/app:latest -# jobs: -# docker: -# runs-on: ubuntu-latest -# steps: -# - name: Checkout -# uses: actions/checkout@v4 -# - name: Set up QEMU -# uses: docker/setup-qemu-action@v3 -# - name: Set up Docker Buildx -# uses: docker/setup-buildx-action@v3 -# - name: Login to Docker Hub -# uses: docker/login-action@v3 -# with: -# username: h4ckermike -# password: ${{ secrets.DOCKER }} -# - name: Build and export to Docker -# uses: docker/build-push-action@v5 -# with: -# context: . -# load: true -# tags: ${{ env.TEST_TAG }} -# - name: Test -# run: | -# docker run --rm ${{ env.TEST_TAG }} -# - name: Build and push -# uses: docker/build-push-action@v5 -# with: -# context: . -# platforms: linux/amd64,linux/arm64 -# push: true -# tags: ${{ env.LATEST_TAG }} +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_HUB_USERNAME }} + password: ${{ secrets.DOCKER_HUB_PASSWORD }} + - name: Build and export to Docker + uses: docker/build-push-action@v5 + with: + context: . + load: true + tags: ${{ secrets.TEST_TAG }} + - name: Test + run: | + docker run --rm ${{ env.TEST_TAG }} + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + platforms: linux/amd64,linux/arm64 + push: true + tags: ${{ env.LATEST_TAG }} diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 42cf029..b357ab2 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -34,4 +34,4 @@ jobs: uses: isbang/compose-action@v1.5.1 env: GITHUB_PAT: ${{ secrets.PAT }} - GITHUB_REPO: "jmikedupont2/ai-ticket" + GITHUB_REPO: "MuhammadSaadSiddique/ai-ticket" diff --git a/.github/workflows/respond_to_new_comment.yml b/.github/workflows/respond_to_new_comment.yml new file mode 100644 index 0000000..d6eba1e --- /dev/null +++ b/.github/workflows/respond_to_new_comment.yml @@ -0,0 +1,21 @@ +name: Respond to New Comments + +on: + issue_comment: + types: + - created + +jobs: + respond: + runs-on: ubuntu-latest + + steps: + - name: Check Comment + id: check-comment + uses: actions/github-script@v4 + with: + github-token: ${{ secrets.CUSTOM_TOKEN }} + script: | + const comment = context.payload.comment.body.toLowerCase(); + // Add your logic here to respond to the new comment + console.log('New comment:', comment);