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

Feature/compose viz #33

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
working better
now just need to add a job
  • Loading branch information
mike dupont committed Oct 4, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit d2bb483940d579f10e181e2d8b40b6354dbb7be8
20 changes: 20 additions & 0 deletions .github/workflows/debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Python package
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
debug:
runs-on: ubuntu-latest
steps:
- name: test
env:
GITHUB_PAT: ${{ secrets.PAT }}
GITHUB_1: ${{ secrets.PAT }}
DOCKERTEST: ${{ secrets.DOCKER }}
run: echo pat ${{ secrets.PAT }} docker ${{ secrets.DOCKER }} and test1 ${DOCKERTEST} and $GITHUB_1
- name: test2
env:
GITHUB_PAT: ${{ secrets.PAT }}
run: docker-compose -e GIHUB_PAT="${{ secrets.PAT }}" up
24 changes: 22 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -14,6 +14,8 @@ jobs:
#"3.10",
"3.x"]
steps:


- uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@master
@@ -29,12 +31,30 @@ jobs:
python -m pip install --upgrade pip
#python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install podman-compose
#- name: Lint with flake8
# run: |
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Docker Compose Action
uses: meta-introspector/compose-action@main
- name: Docker Compose Action build
#uses: meta-introspector/compose-action@main
env:
GITHUB_PAT: ${{ secrets.PAT }}
GITHUB_REPO: "jmikedupont2/ai-ticket"
run: docker-compose build

- name: Docker Compose Action echo
env:
GITHUB_PAT: ${{ secrets.PAT }}
GITHUB_REPO: "jmikedupont2/ai-ticket"
run: echo pat ${{ secrets.PAT }}
# run: echo docker-compose up -e GITHUB_PAT=${{ secrets.PAT }} -e GITHUB_REPO="jmikedupont2/ai-ticket"

- name: Docker Compose Action do it
#uses: meta-introspector/compose-action@main
env:
GITHUB_PAT: ${{ secrets.PAT }}
GITHUB_REPO: "jmikedupont2/ai-ticket"
run: |
GITHUB_PAT=${{ secrets.PAT }} GITHUB_REPO="jmikedupont2/ai-ticket" docker-compose up

4 changes: 4 additions & 0 deletions .secrets.example.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
GITHUB_TOKEN=
GITHUB_PAT=
PAT=this isused
DOCKER=
10 changes: 3 additions & 7 deletions runact.sh
Original file line number Diff line number Diff line change
@@ -6,13 +6,9 @@

# git clone https://github.com/moovweb/gvm
# cd gvm/ &&./autogen.sh && make install

act \
-s GITHUB_TOKEN=`cat github_pat.txt` \
-s GITHUB_PAT=`cat github_pat.txt` \
-s DOCKER=`cat dckr_pat_.txt` \
-P ubuntu-latest=localhost/my_local_act \
--verbose \
# use .secrets PAT And DOCKER
act -P ubuntu-latest=localhost/my_local_act \
--verbose \
--job python-package-build

# --pull=false \