Skip to content

Commit

Permalink
permitir releases desde diferentes ramas con su codigo
Browse files Browse the repository at this point in the history
  • Loading branch information
bidof committed Feb 24, 2024
1 parent 6602f1a commit 956fbaa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,9 @@ jobs:
user: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_KEY }}
command: |
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
wget https://github.com/Arquisoft/wiq_es04c.git
BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//-/g')
wget https://raw.githubusercontent.com/arquisoft/wiq_es04c/$BRANCH_NAME/docker-compose.yml -O docker-compose.yml
wget https://raw.githubusercontent.com/arquisoft/wiq_es04c/$BRANCH_NAME/.env -O .env
git clone -b $BRANCH_NAME https://github.com/Arquisoft/wiq_es04c.git
docker compose --profile prod down
docker compose --profile prod up -d

0 comments on commit 956fbaa

Please sign in to comment.