Compare commits

...

2 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
4 changed files with 26 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
name: ci/cd internal docker image
#! too heavy to build on server (10h of build and doesn't work ....)
#! too heavy to build on server (10hours of build and doesn't work ....)
on:
push:
tags:

View File

@@ -49,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

@@ -49,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

@@ -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 }}