- fix workflow for manual deploy
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
62cfccf924
commit
d4e8904c04
@ -1,24 +1,21 @@
|
||||
name: Manually Deploy Image to Coolify
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- Setup-Basic-Website
|
||||
# workflow_dispatch:
|
||||
# inputs:
|
||||
# image_tag:
|
||||
# description: 'Built Container Image to deploy'
|
||||
# required: false
|
||||
# default: 'latest'
|
||||
# type: string
|
||||
# environment:
|
||||
# description: 'Coolify Environment to deploy to'
|
||||
# required: false
|
||||
# type: choice
|
||||
# default: 'staging'
|
||||
# options:
|
||||
# - staging
|
||||
# - production
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
image_tag:
|
||||
description: 'Built Container Image to deploy'
|
||||
required: false
|
||||
default: 'latest'
|
||||
type: string
|
||||
environment:
|
||||
description: 'Coolify Environment to deploy to'
|
||||
required: false
|
||||
type: choice
|
||||
default: 'staging'
|
||||
options:
|
||||
- staging
|
||||
- production
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
@ -35,11 +32,7 @@ jobs:
|
||||
uses: carlozanella/deploy-coolify@v1
|
||||
with:
|
||||
endpoint: ${{ secrets.COOLIFY_ENDPOINT }}/api/v1
|
||||
# endpoint: ${{ secrets.COOLIFY_ENDPOINT }}/project/${{ secrets.COOLIFY_PROJECT_ID }}/environment/${{ secrets.COOLIFY_STAGING_ENVIRONMENT_UUID }}
|
||||
# endpoint: ${{ secrets.COOLIFY_ENDPOINT }}/project/${{ secrets.COOLIFY_PROJECT_ID }}/environment/${{ (contains(github.event.inputs.environment, 'staging') && secrets.COOLIFY_STAGING_ENVIRONMENT_UUID) || secrets.COOLIFY_PRODUCTION_ENVIRONMENT_UUID }}
|
||||
token: ${{ secrets.COOLIFY_TOKEN }}
|
||||
app_uuid: ${{ secrets.COOLIFY_APP_STAGING_UUID }}
|
||||
# app_uuid: ${{ (contains(github.event.inputs.environment, 'staging') && secrets.COOLIFY_APP_STAGING_UUID) || secrets.COOLIFY_APP_PRODUCTION_UUID }}
|
||||
app_uuid: ${{ (contains(github.event.inputs.environment, 'staging') && secrets.COOLIFY_APP_STAGING_UUID) || secrets.COOLIFY_APP_PRODUCTION_UUID }}
|
||||
image_name: 'gitea.bsidesolutions.net/oonyeje/oonyeje-portfolio'
|
||||
image_tag: dev
|
||||
# image_tag: ${{ github.event.inputs.image_tag }}
|
||||
image_tag: ${{ github.event.inputs.image_tag }}
|
||||
Loading…
x
Reference in New Issue
Block a user