- add manual deployment workflow
- test workflow
This commit is contained in:
parent
1808d7c9cd
commit
4cfce53b6d
36
.gitea/workflows/manual_deploy_to_coolify.yaml
Normal file
36
.gitea/workflows/manual_deploy_to_coolify.yaml
Normal 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 }}
|
||||||
@ -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"
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
plugins: {
|
plugins: {
|
||||||
// tailwindcss: {},
|
tailwindcss: {},
|
||||||
autoprefixer: {},
|
autoprefixer: {},
|
||||||
"@tailwindcss/postcss": {}
|
"@tailwindcss/postcss": {}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user