From 9e591d4af3dfa3292461c72ac24e98de2ca2a497 Mon Sep 17 00:00:00 2001 From: david Date: Mon, 19 Feb 2024 20:51:13 +0100 Subject: [PATCH] arreglar problema del ssh en el depsliegue --- .github/workflows/release.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 77a4606..715c1f9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -110,6 +110,24 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} registry: ghcr.io workdir: gatewayservice + docker-push-questionservice: + name: Push question service Docker Image to GitHub Packages + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + needs: [e2e-tests] + steps: + - uses: actions/checkout@v4 + - name: Publish to Registry + uses: elgohr/Publish-Docker-Github-Action@v5 + with: + name: arquisoft/wiq_es04c/questionservice + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + registry: ghcr.io + workdir: questionservice + deploy: name: Deploy over SSH runs-on: ubuntu-latest @@ -125,4 +143,4 @@ jobs: wget https://raw.githubusercontent.com/arquisoft/wiq_es04c/master/docker-compose.yml -O docker-compose.yml wget https://raw.githubusercontent.com/arquisoft/wiq_es04c/master/.env -O .env docker compose down - docker compose --profile prod up -d + docker compose --profile prod up -d \ No newline at end of file