[Add full ci poker and vwmetrics]

This commit is contained in:
2025-08-23 01:54:45 +02:00
parent daf564b3db
commit 88e59e02fb
2 changed files with 39 additions and 98 deletions

View File

@@ -4,30 +4,19 @@ on:
push:
tags:
- '*-poker'
# schedule:
# - cron: '0 12 * * *'
schedule:
- cron: '0 9 1 * *'
env:
GIT_REPO: poker-master-tool
DOCKER_IMAGE_NAME: poker
jobs:
build-and-push-poker:
build-push-poker:
#! see on runner /data/.runner to add label (test => test:docker://debian:bullseye)
# runs-on: test
# container: debian:bullseye
# runs-on: ubuntu-latest
# container: node:16-bullseye
runs-on: ubuntu-latest
container:
image: docker
# container:
# image: ${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_RUNNER }}:latest
# credentials:
# username: ${{ vars.GIT_USER_REPO }}
# password: ${{ secrets.PACKAGE_RW }}
steps:
- name: Show Information
run: echo "Runner ${{ runner.os }} working on repository ${{ gitea.repository }} and on tag ${{ gitea.ref_name }}"
@@ -49,7 +38,19 @@ 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
pull-up-poker:
#! see on runner /data/.runner to add label (test => test:docker://debian:bullseye)
runs-on: ubuntu-latest
container:
image: ubuntu
steps:
- name: Install required packages
run: |
apt-get -y update
apt-get install -y curl
- name: Pull and up container
uses: appleboy/ssh-action@v1
with:
host: 163.172.84.28