Skip to content

Commit

Permalink
in deploy version has been parametrized
Browse files Browse the repository at this point in the history
  • Loading branch information
leoBitto committed Oct 12, 2024
1 parent 9b807cc commit 6f909a3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ name: 03.Deploy Application to Server
on:
workflow_dispatch:
inputs:
image_name:
description: "Docker image name"
version:
description: "Image version to upload"
required: true

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
deploy:
Expand Down Expand Up @@ -112,7 +113,7 @@ jobs:
key: ${{ secrets.PRIVATE_KEY }}
script: |
echo ${{ secrets.GHCR_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
docker pull ${{ env.REGISTRY }}/${REPO_NAME_LC,,}:latest-test
docker pull ${{ env.REGISTRY }} ${{ env.IMAGE_NAME }}:${{ inputs.version }}
docker compose -f /opt/docker-compose.prod.yml up -d --force-recreate
# Step 5: Configurazione di Nginx
Expand Down

0 comments on commit 6f909a3

Please sign in to comment.