- 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
|
name: Manually Deploy Image to Coolify
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_dispatch:
|
||||||
branches:
|
inputs:
|
||||||
- Setup-Basic-Website
|
image_tag:
|
||||||
# workflow_dispatch:
|
description: 'Built Container Image to deploy'
|
||||||
# inputs:
|
required: false
|
||||||
# image_tag:
|
default: 'latest'
|
||||||
# description: 'Built Container Image to deploy'
|
type: string
|
||||||
# required: false
|
environment:
|
||||||
# default: 'latest'
|
description: 'Coolify Environment to deploy to'
|
||||||
# type: string
|
required: false
|
||||||
# environment:
|
type: choice
|
||||||
# description: 'Coolify Environment to deploy to'
|
default: 'staging'
|
||||||
# required: false
|
options:
|
||||||
# type: choice
|
- staging
|
||||||
# default: 'staging'
|
- production
|
||||||
# options:
|
|
||||||
# - staging
|
|
||||||
# - production
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
@ -35,11 +32,7 @@ jobs:
|
|||||||
uses: carlozanella/deploy-coolify@v1
|
uses: carlozanella/deploy-coolify@v1
|
||||||
with:
|
with:
|
||||||
endpoint: ${{ secrets.COOLIFY_ENDPOINT }}/api/v1
|
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 }}
|
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_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