Compare commits
2 Commits
0.1.2-demo
...
0.0.6-vwme
| Author | SHA1 | Date | |
|---|---|---|---|
| e59eae7ddb | |||
| cf52786f65 |
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 }}
|
||||
Reference in New Issue
Block a user