Compare commits

..
5 Commits
Author SHA1 Message Date
pi-ux-ce a2ebb2be10 Update stash_tagger.md
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 13m5s
2026-01-24 16:42:46 +00:00
pi-ux-ce 2126d8e231 Add stash_tagger.md
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
2026-01-24 16:38:45 +00:00
Pierre Geeraert 3a96506bd3 removing extra steps
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 17m41s
2026-01-19 11:35:03 +00:00
Pierre Geeraert 0827430e81 adding workflow 2026-01-19 11:32:35 +00:00
pi-ux-ce c6978ab0b3 adding this to leave the pod on all the time 2026-01-19 11:28:35 +00:00
3 changed files with 187 additions and 0 deletions
+80
View File
@@ -0,0 +1,80 @@
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on:
push:
issue_comment:
types: [created]
jobs:
Explore-Gitea-Actions:
env:
RUNNER_TOOL_CACHE: /toolcache
container:
volumes:
- act-toolcache:/opt/hostedtoolcache # this is where Runner store their cache default
runs-on: ubuntu-latest
steps:
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
- name: Compute next version
id: versioning
run: |
latest="${{ vars.VERSION }}"
next_version=$(echo "$latest" | awk -F. -v OFS=. '{$NF += 1 ; print}')
echo "next_version=$next_version" >> $GITHUB_ENV
echo "Variables used :"
echo "------------------------------------------------"
echo "Next version: $next_version"
- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /opt/hostedtoolcache/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: inject cache into docker
uses: reproducible-containers/buildkit-cache-dance@v3.1.0
with:
cache-source: /opt/hostedtoolcache/pip
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to gitea
uses: docker/login-action@v3
with:
registry: gitea.tryton.geeraert.eu
username: ${{ secrets.USERNAME_GITEA }}
password: ${{ secrets.PASSWORD_GITEA }}
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: |
gitea.tryton.geeraert.eu/pi-ux-ce/wd14-tagger:latest
gitea.tryton.geeraert.eu/pi-ux-ce/wd14-tagger:${{ env.next_version }}
cache-from: type=local,src=/opt/hostedtoolcache/.buildx-cache
cache-to: type=local,dest=/opt/hostedtoolcache/.buildx-cache-new,mode=max
- name: Move cache
run: |
rm -rf /opt/hostedtoolcache/.buildx-cache
mv /opt/hostedtoolcache/.buildx-cache-new /opt/hostedtoolcache/.buildx-cache
- name: update version in the variable
run: |
curl -X PUT -H "Content-Type: application/json" \
--user ${{ secrets.USERNAME_GITEA }}:${{ secrets.PASSWORD_GITEA }} \
https://gitea.tryton.geeraert.eu/api/v1/repos/pi-ux-ce/${{ github.event.repository.name }}/actions/variables/VERSION \
-d "{\"Value\":\"$next_version\"}"
+1
View File
@@ -20,6 +20,7 @@ RUN pip install --cache-dir=/tmp/pipcache -r requirements.txt
#RUN pdm install
#CMD ["pdm", "run", "python3", "main.py"]
#CMD ["python3", "run.py"]
CMD ["sleep", "infinity"]
#CMD ["python3", "run.py" ,"--threshold 0.5" ,"--file thereneerose_0002.jpg" ,"--rawtag"]
#CMD ["python3", "run.py" ,"--threshold","0.5" ,"--file", "thereneerose_0002.jpg" ,"--rawtag"]
+106
View File
@@ -0,0 +1,106 @@
Get the list of the performers
```
query {
findPerformers {
performers {
id
name
alias_list
}
}
}
```
Get the list of the performers , count them and don't add their alias
```
query {
findPerformers {
count
performers {
id
name
}
}
}
```
Find all the images split by 20 images
```
query FindImages {
findImages(
image_filter: {}
filter: { q: "", page: 1, per_page: 20, sort: "created_at", direction: DESC }
) {
count
images {
id
title
tags{
name
}
paths {
image
}
}
}
}
```
```
query GetImageFiles {
findImages(filter: { per_page: 20 }) {
images {
id
title
tags {
id
}
files {
path
basename
}
}
}
}
```
Get specific image ID by filename
```
query FindImageByPath {
findImages(
image_filter: { path: { value: "/data/1563-01.jpg", modifier: EQUALS } }
) {
images {
id
}
}
}
```
amateur-have-be-our-favourite-position-fm-MsM3gC.jpg
update specific image with specified tags
```
mutation UpdateImageTags($imageId: ID!, $newTagIds: [ID!]) {
imageUpdate(input: {
id: "58",
tag_ids: "5"
}) {
id
tags {
name
}
}
}
```
examples of query
```
curl -X POST -H "ApiKey: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJwaS11eC1jZSIsInN1YiI6IkFQSUtleSIsImlhdCI6MTc2OTI3MDg0NX0._E6j5vMFV087KrNSjAmF3tVun39-ZXEpTIva9cLRR4Y" -H "Content-Type: application/json" --data '{ "query": "query {findPerformers {performers{id name}}}"}' https://stash.tryton.geeraert.eu/graphql
curl -X POST -H "ApiKey: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJwaS11eC1jZSIsInN1YiI6IkFQSUtleSIsImlhdCI6MTc2OTI3MDg0NX0._E6j5vMFV087KrNSjAmF3tVun39-ZXEpTIva9cLRR4Y" -H "Content-Type: application/json" --data '{ "query": "query {findPerformers {performers{id name}}}"}' https://stash.tryton.geeraert.eu/graphql |jq
```