From 4cfce53b6d4ce33d746c6b9029c19af8b8138759 Mon Sep 17 00:00:00 2001 From: oonyeje Date: Wed, 5 Mar 2025 07:12:48 -0500 Subject: [PATCH] - add manual deployment workflow - test workflow --- .../workflows/manual_deploy_to_coolify.yaml | 36 +++++++++++++++++++ .gitea/workflows/test.yaml | 31 ---------------- postcss.config.js | 2 +- 3 files changed, 37 insertions(+), 32 deletions(-) create mode 100644 .gitea/workflows/manual_deploy_to_coolify.yaml delete mode 100644 .gitea/workflows/test.yaml diff --git a/.gitea/workflows/manual_deploy_to_coolify.yaml b/.gitea/workflows/manual_deploy_to_coolify.yaml new file mode 100644 index 0000000..29ed9c0 --- /dev/null +++ b/.gitea/workflows/manual_deploy_to_coolify.yaml @@ -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 }} \ No newline at end of file diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml deleted file mode 100644 index 85c87e9..0000000 --- a/.gitea/workflows/test.yaml +++ /dev/null @@ -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" \ No newline at end of file diff --git a/postcss.config.js b/postcss.config.js index 50670cc..2b57d0a 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -1,6 +1,6 @@ module.exports = { plugins: { - // tailwindcss: {}, + tailwindcss: {}, autoprefixer: {}, "@tailwindcss/postcss": {} },