Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test #38

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

test #38

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 39 additions & 39 deletions .github/workflows/buildx.yml
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
21 changes: 21 additions & 0 deletions .github/workflows/respond_to_new_comment.yml
Original file line number Diff line number Diff line change
@@ -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);