- add manual deployment workflow
Some checks failed
Manually Deploy Image to Coolify / deploy (push) Failing after 1m2s
continuous-integration/drone/push Build is passing

- test workflow
This commit is contained in:
oonyeje 2025-03-05 07:12:48 -05:00
parent 1808d7c9cd
commit 4cfce53b6d
3 changed files with 37 additions and 32 deletions

View File

@ -0,0 +1,36 @@
name: Manually Deploy Image to Coolify
on:
push:
branches:
- Setup-Basic-Website
workflow_dispatch:
inputs:
image_tag:
description: 'Built Container Image to deploy'
required: true
default: 'latest'
type: string
environment:
description: 'Coolify Environment to deploy to'
required: true
type: choice
default: 'staging'
options:
- staging
- production
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Deploy to Coolify
uses: carlozanella/deploy-coolify@v1
with:
endpoint: ${{ secrets.COOLIFY_ENDPOINT }}
token: ${{ secrets.COOLIFY_TOKEN }}
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: ${{ github.event.inputs.image_tag }}

View File

@ -1,31 +0,0 @@
name: Build and Push Docker Image to Gitea Registry
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
branch:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Login to Gitea Registry
run: |
echo "${{ secrets.TOKEN }}" | docker login ${{ gitea.server_url }} --username ${{ gitea.actor }} --password-stdin
- name: Test workflow
run: |
echo "Image pushed: ${{ gitea.server_url }}/${{ gitea.repository }}:${{ gitea.sha }}"
echo "Image pushed: ${{ gitea.server_url }}/${{ gitea.repository }}:latest"

View File

@ -1,6 +1,6 @@
module.exports = {
plugins: {
// tailwindcss: {},
tailwindcss: {},
autoprefixer: {},
"@tailwindcss/postcss": {}
},