Compare commits

...

3 Commits

Author SHA1 Message Date
e59eae7ddb [Add docker compose commands] 2025-08-22 22:25:30 +02:00
cf52786f65 [Add ubuntu on demo] 2025-08-22 21:41:57 +02:00
4f49a48453 [Add schedule + jsoncrack too heavy build] 2025-08-19 10:09:51 +02:00
6 changed files with 49 additions and 7 deletions

View File

@@ -1,10 +1,13 @@
name: ci/cd internal docker image
#! too heavy to build on server (10hours of build and doesn't work ....)
on:
push:
tags:
- '*-jsoncrack'
# schedule:
# - cron: '0 12 * * *'
env:
GIT_REPO: jsoncrack.com
@@ -49,6 +52,20 @@ jobs:
docker push ${{ vars.REGISTRY_DOCKER }}/${{ vars.GIT_USER_REPO }}/${{ env.DOCKER_IMAGE_NAME }}:latest
#! add step to docker compose up the container => https://gitea.com/actions/appleboy-ssh-action
# - name: Execute remote SSH commands using SSH key
# uses: appleboy/ssh-action@v1
# with:
# host: ${{ secrets.HOST }}
# username: ${{ secrets.USERNAME }}
# key: ${{ secrets.KEY }}
# port: ${{ secrets.PORT }}
# script: |
# whoami
# ls -al
#docker push ${{ vars.REGISTRY_DOCKER }}/${{ vars.GIT_USER_REPO }}/${{ env.DOCKER_IMAGE_NAME }}:$VERSION
# docker pull gitea.jingoh.fr/staffadmin/test:0.0.1

View File

@@ -4,7 +4,8 @@ on:
push:
tags:
- '*-poker'
# schedule:
# - cron: '0 12 * * *'
env:
GIT_REPO: poker-master-tool
@@ -48,6 +49,17 @@ jobs:
docker push ${{ vars.REGISTRY_DOCKER }}/${{ vars.GIT_USER_REPO }}/${{ env.DOCKER_IMAGE_NAME }}:$VERSION
docker push ${{ vars.REGISTRY_DOCKER }}/${{ vars.GIT_USER_REPO }}/${{ env.DOCKER_IMAGE_NAME }}:latest
- name: Pull and restart container
uses: appleboy/ssh-action@v1
with:
host: 163.172.84.28
username: stephane
key: ${{ secrets.SSH_KEY }}
passphrase: ${{ secrets.SSH_PASS }}
port: 22
script: |
docker compose -f /opt/dockerapps/docker-compose.yml pull ${{ env.DOCKER_IMAGE_NAME }}
docker compose -f /opt/dockerapps/docker-compose.yml up -d ${{ env.DOCKER_IMAGE_NAME }}
#docker push ${{ vars.REGISTRY_DOCKER }}/${{ vars.GIT_USER_REPO }}/${{ env.DOCKER_IMAGE_NAME }}:$VERSION

View File

@@ -4,7 +4,8 @@ on:
push:
tags:
- '*-spiderfoot'
# schedule:
# - cron: '0 12 * * *'
env:
GIT_REPO: spiderfoot

View File

@@ -4,7 +4,8 @@ on:
push:
tags:
- '*-vwmetrics'
# schedule:
# - cron: '0 12 * * *'
env:
GIT_REPO: vwmetrics
@@ -48,6 +49,18 @@ jobs:
docker push ${{ vars.REGISTRY_DOCKER }}/${{ vars.GIT_USER_REPO }}/${{ env.DOCKER_IMAGE_NAME }}:latest
- name: Pull and restart container
uses: appleboy/ssh-action@v1
with:
host: 163.172.84.28
username: stephane
key: ${{ secrets.SSH_KEY }}
passphrase: ${{ secrets.SSH_PASS }}
port: 22
script: |
docker compose -f /opt/dockerapps/docker-compose.yml pull ${{ env.DOCKER_IMAGE_NAME }}
docker compose -f /opt/dockerapps/docker-compose.yml up -d ${{ env.DOCKER_IMAGE_NAME }}
#docker push ${{ vars.REGISTRY_DOCKER }}/${{ vars.GIT_USER_REPO }}/${{ env.DOCKER_IMAGE_NAME }}:$VERSION
# docker pull gitea.jingoh.fr/staffadmin/test:0.0.1

View File

@@ -3,7 +3,6 @@ name: ci/cd public docker
on:
push:
tags:
# Be carefull, conflict with package-deb *.*.*, don't use more than on dot *.* (ex: 2.5-runner)
- '*-public'
env:

View File

@@ -9,7 +9,7 @@ on:
jobs:
Explore-Gitea-Actions:
runs-on: debian-bullseye-node
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event. Test 4zet"
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
@@ -20,6 +20,6 @@ jobs:
- name: Git clone private repository
uses: actions/checkout@v3
with:
repository: staffadmin/semaphore
repository: sgratias/semaphore
ref: main
token: ${{ secrets.REPO_PULL_GITEA }}