diff --git a/.gitea/workflows/deployProd.yml b/.gitea/workflows/deployProd.yml index f7bf287..7b4ff87 100644 --- a/.gitea/workflows/deployProd.yml +++ b/.gitea/workflows/deployProd.yml @@ -5,21 +5,33 @@ on: registry_package: types: [published] -jobs: - CreateImage: - runs-on: [skeris] - uses: https://gitea.pena/PenaDevops/actions.git/.gitea/workflows/build-image.yml@v1.1.6-p - with: - runner: skeris - secrets: - REGISTRY_USER: ${{ secrets.REGISTRY_USER }} - REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }} - DeployService: - runs-on: [frontprod] - #needs: CreateImage - uses: https://gitea.pena/PenaDevops/actions.git/.gitea/workflows/deploy.yml@v1.1.4-p7 - with: - runner: hubprod - actionid: ${{ gitea.run_id }} +# jobs: +# CreateImage: +# runs-on: [skeris] +# uses: https://gitea.pena/PenaDevops/actions.git/.gitea/workflows/build-image.yml@v1.1.6-p +# with: +# runner: skeris +# secrets: +# REGISTRY_USER: ${{ secrets.REGISTRY_USER }} +# REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }} +# DeployService: +# runs-on: [frontprod] +# #needs: CreateImage +# uses: https://gitea.pena/PenaDevops/actions.git/.gitea/workflows/deploy.yml@v1.1.4-p7 +# with: +# runner: hubprod +# actionid: ${{ gitea.run_id }} - +DeployService: + if: contains(github.event.package.name, 'main') + runs-on: [frontprod] + container: + image: gitea.pena/penadevops/container-images/node-compose:main + env: + GITHUB_RUN_NUMBER: "${{ inputs.actionid }}" + volumes: + - /run/user/1000/podman/podman.sock:/run/user/1000/podman/podman.sock + steps: + - name: Check out repository code + uses: http://gitea.pena/PenaDevops/actions.git/checkout@v1 + - run: compose -f deployments/main/docker-compose.yaml up -d \ No newline at end of file