From 1003b27e955f6f3715295bb5d39d913180c233d1 Mon Sep 17 00:00:00 2001 From: oonyeje Date: Wed, 29 Nov 2023 16:35:05 -0500 Subject: [PATCH 01/17] - working on appointments block (cherry picked from commit 7a010a4f8e0362b0f344e8fe5cf8df58f2cf5e65) --- components/form/GoogleAppointmentBlock.tsx | 16 ++++++++++++++++ pages/index.tsx | 2 ++ 2 files changed, 18 insertions(+) create mode 100644 components/form/GoogleAppointmentBlock.tsx diff --git a/components/form/GoogleAppointmentBlock.tsx b/components/form/GoogleAppointmentBlock.tsx new file mode 100644 index 0000000..f906b08 --- /dev/null +++ b/components/form/GoogleAppointmentBlock.tsx @@ -0,0 +1,16 @@ +const GoogleAppointmentBlock = () => { + const {GOOGLE_APPOINTMENTS_LINK} = process.env; + console.log(GOOGLE_APPOINTMENTS_LINK) + return ( +
+ +
+ ); +} + +export default GoogleAppointmentBlock; \ No newline at end of file diff --git a/pages/index.tsx b/pages/index.tsx index dbbf667..d764353 100755 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -8,6 +8,7 @@ import navigationContent from '../lib/navigationContent' import ContactForm from '@/components/form/ContactForm'; import Footer from '@/components/footer'; import Link from 'next/link'; +import GoogleAppointmentBlock from '@/components/form/GoogleAppointmentBlock'; const inter = Inter({ subsets: ['latin'] }) export default function Home() { @@ -119,6 +120,7 @@ export default function Home() {
+ {/* */}
{ executeScrollToLandiing(); -- 2.47.2 From 43ea42397fe09624beb5d0f20be19a43100a0396 Mon Sep 17 00:00:00 2001 From: oonyeje Date: Fri, 7 Mar 2025 13:54:22 -0500 Subject: [PATCH 02/17] add some conditional deploy syntax --- .drone.yml | 54 +++++++++++++++++-- .../workflows/manual_deploy_to_coolify.yaml | 4 -- 2 files changed, 51 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index 273b0ce..89b7207 100755 --- a/.drone.yml +++ b/.drone.yml @@ -40,8 +40,30 @@ steps: volumes: - name: docker_sock path: /var/run/docker.sock -- name: Build and Push Container Image +- name: Build and Push (PR) Container Image image: plugins/docker + when: + branch: + - feature/* + pull_request: + types: [opened, updated] + settings: + username: + from_secret: DOCKER_USERNAME + password: + from_secret: DOCKER_PASSWORD + repo: gitea.bsidesolutions.net/oonyeje/oonyeje-portfolio + registry: gitea.bsidesolutions.net + dockerfile: ./Dockerfile + force_tag: true + tags: + - latest + - pr-build-${DRONE_COMMIT_SHA:0:10} +- name: Build and Push (Staging) Container Image + image: plugins/docker + when: + branch: + - develop settings: username: from_secret: DOCKER_USERNAME @@ -54,8 +76,34 @@ steps: tags: - latest - dev - - dev-build-${DRONE_COMMIT_SHA:0:7} - + - dev-${DRONE_COMMIT_SHA:0:10} +- name: Build and Push (Production) Container Image + image: plugins/docker + when: + branch: + - main + settings: + username: + from_secret: DOCKER_USERNAME + password: + from_secret: DOCKER_PASSWORD + repo: gitea.bsidesolutions.net/oonyeje/oonyeje-portfolio + registry: gitea.bsidesolutions.net + dockerfile: ./Dockerfile + force_tag: true + tags: + - latest + - release + - release-${DRONE_COMMIT_SHA:0:10} +trigger: + branch: + - main + - develop + - feature/* + event: + include: + - pull_request + - push # - name: deploy-staging # image: plugins/ansible:latest diff --git a/.gitea/workflows/manual_deploy_to_coolify.yaml b/.gitea/workflows/manual_deploy_to_coolify.yaml index 0bc78d6..1055faa 100644 --- a/.gitea/workflows/manual_deploy_to_coolify.yaml +++ b/.gitea/workflows/manual_deploy_to_coolify.yaml @@ -24,10 +24,6 @@ jobs: - name: Checkout Code uses: actions/checkout@v4 - # - name: Login to Gitea - # run: | - # echo "${{ secrets.TOKEN }}" | docker login ${{ gitea.server_url }} --username ${{ gitea.actor }} --password-stdin - - name: Deploy to Coolify uses: carlozanella/deploy-coolify@v1 with: -- 2.47.2 From 05f3ab1f1481bb43dde27a9d2088ecd4c66cc773 Mon Sep 17 00:00:00 2001 From: oonyeje Date: Fri, 7 Mar 2025 14:18:39 -0500 Subject: [PATCH 03/17] - remove pull_request trigger --- .drone.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 89b7207..c1a9e90 100755 --- a/.drone.yml +++ b/.drone.yml @@ -45,8 +45,6 @@ steps: when: branch: - feature/* - pull_request: - types: [opened, updated] settings: username: from_secret: DOCKER_USERNAME @@ -58,7 +56,7 @@ steps: force_tag: true tags: - latest - - pr-build-${DRONE_COMMIT_SHA:0:10} + - pr-build-${DRONE_BRANCH} - name: Build and Push (Staging) Container Image image: plugins/docker when: @@ -102,7 +100,6 @@ trigger: - feature/* event: include: - - pull_request - push # - name: deploy-staging -- 2.47.2 From 2d3bdad8005ee79bb671225af1ba68d137ebc410 Mon Sep 17 00:00:00 2001 From: oonyeje Date: Fri, 7 Mar 2025 14:28:48 -0500 Subject: [PATCH 04/17] - add ollama pipeline review --- .gitea/workflows/llm_pipeline_actions.yaml | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .gitea/workflows/llm_pipeline_actions.yaml diff --git a/.gitea/workflows/llm_pipeline_actions.yaml b/.gitea/workflows/llm_pipeline_actions.yaml new file mode 100644 index 0000000..7a4d646 --- /dev/null +++ b/.gitea/workflows/llm_pipeline_actions.yaml @@ -0,0 +1,36 @@ +name: 'Ollama Review' + +on: + pull_request: + types: [opened, review_requested] # PR open시 자동 코드 리뷰 요청 + +# permissions: +# contents: read # 콘텐츠 접근 권한 (PR 변경 사항 읽기) +# pull-requests: write # PR comment 작성 권한 + +jobs: + test-action: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Run Container Action + uses: ljy2855/llm_code_reviewer@v1 + with: + # fixed field + github_token: ${{ secrets.TOKEN }} + github_owner: ${{ github.repository_owner }} + github_repository: ${{ github.repository }} + pr_number: ${{ github.event.pull_request.number }} + pr_title: ${{ github.event.pull_request.title }} + pr_body: ${{ github.event.pull_request.body }} + + # you might fill + ollama_api_url: ${{ secrets.OLLAMA_API_URL }} + + + # optional field + ollama_model: 'qwen2.5-coder:14b' + prompt_type: 'GENERAL_REVIEW' + prompt_language: 'EN' -- 2.47.2 From 0b2d82f448a7728c9d60b46b47d2a0f67eb66cdf Mon Sep 17 00:00:00 2001 From: oonyeje Date: Fri, 7 Mar 2025 14:35:43 -0500 Subject: [PATCH 05/17] - change trigger to edited --- .gitea/workflows/llm_pipeline_actions.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/llm_pipeline_actions.yaml b/.gitea/workflows/llm_pipeline_actions.yaml index 7a4d646..921107a 100644 --- a/.gitea/workflows/llm_pipeline_actions.yaml +++ b/.gitea/workflows/llm_pipeline_actions.yaml @@ -2,7 +2,7 @@ name: 'Ollama Review' on: pull_request: - types: [opened, review_requested] # PR open시 자동 코드 리뷰 요청 + types: [opened, edited] # PR open시 자동 코드 리뷰 요청 # permissions: # contents: read # 콘텐츠 접근 권한 (PR 변경 사항 읽기) -- 2.47.2 From 325fbff1e6dc927eef86ee690e89b0798c685ee4 Mon Sep 17 00:00:00 2001 From: oonyeje Date: Fri, 7 Mar 2025 14:40:36 -0500 Subject: [PATCH 06/17] - use synchronize trigger --- .gitea/workflows/llm_pipeline_actions.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/llm_pipeline_actions.yaml b/.gitea/workflows/llm_pipeline_actions.yaml index 921107a..a7517bf 100644 --- a/.gitea/workflows/llm_pipeline_actions.yaml +++ b/.gitea/workflows/llm_pipeline_actions.yaml @@ -2,7 +2,7 @@ name: 'Ollama Review' on: pull_request: - types: [opened, edited] # PR open시 자동 코드 리뷰 요청 + types: [opened, synchronize] # PR open시 자동 코드 리뷰 요청 # permissions: # contents: read # 콘텐츠 접근 권한 (PR 변경 사항 읽기) -- 2.47.2 From 333d87c62f1dc43306cac74d53cf3372ca074ebd Mon Sep 17 00:00:00 2001 From: oonyeje Date: Fri, 7 Mar 2025 15:05:05 -0500 Subject: [PATCH 07/17] - add manual steps to code review using ollama --- .gitea/workflows/llm_pipeline_actions.yaml | 35 +++++++++------------- 1 file changed, 14 insertions(+), 21 deletions(-) diff --git a/.gitea/workflows/llm_pipeline_actions.yaml b/.gitea/workflows/llm_pipeline_actions.yaml index a7517bf..b25a95c 100644 --- a/.gitea/workflows/llm_pipeline_actions.yaml +++ b/.gitea/workflows/llm_pipeline_actions.yaml @@ -4,10 +4,6 @@ on: pull_request: types: [opened, synchronize] # PR open시 자동 코드 리뷰 요청 -# permissions: -# contents: read # 콘텐츠 접근 권한 (PR 변경 사항 읽기) -# pull-requests: write # PR comment 작성 권한 - jobs: test-action: runs-on: ubuntu-latest @@ -15,22 +11,19 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Run Container Action - uses: ljy2855/llm_code_reviewer@v1 - with: - # fixed field - github_token: ${{ secrets.TOKEN }} - github_owner: ${{ github.repository_owner }} - github_repository: ${{ github.repository }} - pr_number: ${{ github.event.pull_request.number }} - pr_title: ${{ github.event.pull_request.title }} - pr_body: ${{ github.event.pull_request.body }} + - name: Get changed files + id: changed-files + uses: tj-actions/changed-files@v43 - # you might fill - ollama_api_url: ${{ secrets.OLLAMA_API_URL }} - + - name: Review code + env: + GITEA_TOKEN: ${{ secrets.token }} + run: | + for file in ${{ steps.changed-files.outputs.all_changed_files }}; do + review=$(curl -s https://ollama.bsidesolutions.net/api/generate -d '{"model": "${{ inputs.model }}", "prompt": "Review the following file:\n\n```\n$(cat $file)\n```", "stream": false}' | jq -r '.response') + comment="Ollama Code Review for \`$file\`:\n\n$review" + echo "$comment" >> ollama_review.txt + done - # optional field - ollama_model: 'qwen2.5-coder:14b' - prompt_type: 'GENERAL_REVIEW' - prompt_language: 'EN' + gitea pr comment ${{ gitea.event.pull_request.number }} --body "$(cat ollama_review.txt)" + shell: bash \ No newline at end of file -- 2.47.2 From 788781d077dfe249166bf7bd4353b4fbace004cf Mon Sep 17 00:00:00 2001 From: oonyeje Date: Fri, 7 Mar 2025 15:32:45 -0500 Subject: [PATCH 08/17] - add gitea cli install step --- .gitea/workflows/llm_pipeline_actions.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/llm_pipeline_actions.yaml b/.gitea/workflows/llm_pipeline_actions.yaml index b25a95c..35ad431 100644 --- a/.gitea/workflows/llm_pipeline_actions.yaml +++ b/.gitea/workflows/llm_pipeline_actions.yaml @@ -19,11 +19,15 @@ jobs: env: GITEA_TOKEN: ${{ secrets.token }} run: | + curl -o gitea https://dl.gitea.io/gitea-cli/1.5.0/linux-amd64/gitea + chmod +x gitea + ./gitea --version + for file in ${{ steps.changed-files.outputs.all_changed_files }}; do review=$(curl -s https://ollama.bsidesolutions.net/api/generate -d '{"model": "${{ inputs.model }}", "prompt": "Review the following file:\n\n```\n$(cat $file)\n```", "stream": false}' | jq -r '.response') comment="Ollama Code Review for \`$file\`:\n\n$review" echo "$comment" >> ollama_review.txt done - gitea pr comment ${{ gitea.event.pull_request.number }} --body "$(cat ollama_review.txt)" + ./gitea pr comment ${{ gitea.event.pull_request.number }} --body "$(cat ollama_review.txt)" shell: bash \ No newline at end of file -- 2.47.2 From 6d39e1249304d19b6b7e9441520e6f3f97ea969f Mon Sep 17 00:00:00 2001 From: oonyeje Date: Fri, 7 Mar 2025 15:36:45 -0500 Subject: [PATCH 09/17] - move cli to diferent step --- .gitea/workflows/llm_pipeline_actions.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/llm_pipeline_actions.yaml b/.gitea/workflows/llm_pipeline_actions.yaml index 35ad431..cc03285 100644 --- a/.gitea/workflows/llm_pipeline_actions.yaml +++ b/.gitea/workflows/llm_pipeline_actions.yaml @@ -5,7 +5,7 @@ on: types: [opened, synchronize] # PR open시 자동 코드 리뷰 요청 jobs: - test-action: + review-code-with-llm: runs-on: ubuntu-latest steps: - name: Checkout code @@ -15,14 +15,15 @@ jobs: id: changed-files uses: tj-actions/changed-files@v43 - - name: Review code - env: - GITEA_TOKEN: ${{ secrets.token }} + - name: Setup Gitea CLI run: | curl -o gitea https://dl.gitea.io/gitea-cli/1.5.0/linux-amd64/gitea chmod +x gitea ./gitea --version - + - name: Review code + env: + GITEA_TOKEN: ${{ secrets.token }} + run: | for file in ${{ steps.changed-files.outputs.all_changed_files }}; do review=$(curl -s https://ollama.bsidesolutions.net/api/generate -d '{"model": "${{ inputs.model }}", "prompt": "Review the following file:\n\n```\n$(cat $file)\n```", "stream": false}' | jq -r '.response') comment="Ollama Code Review for \`$file\`:\n\n$review" -- 2.47.2 From 6c64bed454034c8d71fc703080eb86f9d0f6ffd1 Mon Sep 17 00:00:00 2001 From: oonyeje Date: Fri, 7 Mar 2025 15:42:24 -0500 Subject: [PATCH 10/17] - use tea cli --- .gitea/workflows/llm_pipeline_actions.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/llm_pipeline_actions.yaml b/.gitea/workflows/llm_pipeline_actions.yaml index cc03285..2c444b7 100644 --- a/.gitea/workflows/llm_pipeline_actions.yaml +++ b/.gitea/workflows/llm_pipeline_actions.yaml @@ -15,11 +15,11 @@ jobs: id: changed-files uses: tj-actions/changed-files@v43 - - name: Setup Gitea CLI - run: | - curl -o gitea https://dl.gitea.io/gitea-cli/1.5.0/linux-amd64/gitea - chmod +x gitea - ./gitea --version + # - name: Setup Gitea CLI + # run: | + # curl -o gitea https://dl.gitea.io/gitea-cli/1.5.0/linux-amd64/gitea + # chmod +x gitea + # ./gitea --version - name: Review code env: GITEA_TOKEN: ${{ secrets.token }} @@ -30,5 +30,5 @@ jobs: echo "$comment" >> ollama_review.txt done - ./gitea pr comment ${{ gitea.event.pull_request.number }} --body "$(cat ollama_review.txt)" + tea pr comment ${{ gitea.event.pull_request.number }} --body "$(cat ollama_review.txt)" shell: bash \ No newline at end of file -- 2.47.2 From a0bae9717f5944c0636d225d29ef18da9242efc9 Mon Sep 17 00:00:00 2001 From: oonyeje Date: Fri, 7 Mar 2025 15:50:46 -0500 Subject: [PATCH 11/17] - add tea executable --- .gitea/workflows/llm_pipeline_actions.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/llm_pipeline_actions.yaml b/.gitea/workflows/llm_pipeline_actions.yaml index 2c444b7..3ed8401 100644 --- a/.gitea/workflows/llm_pipeline_actions.yaml +++ b/.gitea/workflows/llm_pipeline_actions.yaml @@ -15,11 +15,12 @@ jobs: id: changed-files uses: tj-actions/changed-files@v43 - # - name: Setup Gitea CLI - # run: | - # curl -o gitea https://dl.gitea.io/gitea-cli/1.5.0/linux-amd64/gitea - # chmod +x gitea - # ./gitea --version + - name: Setup Gitea CLI + run: | + curl -o tea https://dl.gitea.com/tea/0.9.2/tea-0.9.2-linux-amd64 + chmod +x tea + ./tea --version + - name: Review code env: GITEA_TOKEN: ${{ secrets.token }} -- 2.47.2 From 8f0552bdf0ef9935bced7abd7302dca17fdb7257 Mon Sep 17 00:00:00 2001 From: oonyeje Date: Fri, 7 Mar 2025 16:03:51 -0500 Subject: [PATCH 12/17] - add ./ --- .gitea/workflows/llm_pipeline_actions.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/llm_pipeline_actions.yaml b/.gitea/workflows/llm_pipeline_actions.yaml index 3ed8401..6b71aa0 100644 --- a/.gitea/workflows/llm_pipeline_actions.yaml +++ b/.gitea/workflows/llm_pipeline_actions.yaml @@ -20,7 +20,7 @@ jobs: curl -o tea https://dl.gitea.com/tea/0.9.2/tea-0.9.2-linux-amd64 chmod +x tea ./tea --version - + - name: Review code env: GITEA_TOKEN: ${{ secrets.token }} @@ -31,5 +31,5 @@ jobs: echo "$comment" >> ollama_review.txt done - tea pr comment ${{ gitea.event.pull_request.number }} --body "$(cat ollama_review.txt)" + ./tea pr comment ${{ gitea.event.pull_request.number }} --body "$(cat ollama_review.txt)" shell: bash \ No newline at end of file -- 2.47.2 From 259119ee0261f9bc145aa6bd98798eb3b2c81547 Mon Sep 17 00:00:00 2001 From: oonyeje Date: Fri, 7 Mar 2025 16:12:53 -0500 Subject: [PATCH 13/17] - add tea login --- .gitea/workflows/llm_pipeline_actions.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitea/workflows/llm_pipeline_actions.yaml b/.gitea/workflows/llm_pipeline_actions.yaml index 6b71aa0..73cabf4 100644 --- a/.gitea/workflows/llm_pipeline_actions.yaml +++ b/.gitea/workflows/llm_pipeline_actions.yaml @@ -21,6 +21,10 @@ jobs: chmod +x tea ./tea --version + tea login add --name gitea --url ${{ gitea.server_url }} --token ${{ secrets.token }} + tea login default gitea + + - name: Review code env: GITEA_TOKEN: ${{ secrets.token }} -- 2.47.2 From a30d873527127747086685f885547e08115d20ab Mon Sep 17 00:00:00 2001 From: oonyeje Date: Fri, 7 Mar 2025 16:16:54 -0500 Subject: [PATCH 14/17] - fix tea install --- .gitea/workflows/llm_pipeline_actions.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/llm_pipeline_actions.yaml b/.gitea/workflows/llm_pipeline_actions.yaml index 73cabf4..79a02e7 100644 --- a/.gitea/workflows/llm_pipeline_actions.yaml +++ b/.gitea/workflows/llm_pipeline_actions.yaml @@ -17,9 +17,17 @@ jobs: - name: Setup Gitea CLI run: | - curl -o tea https://dl.gitea.com/tea/0.9.2/tea-0.9.2-linux-amd64 - chmod +x tea - ./tea --version + LATEST_VERSION=$(curl -s https://dl.gitea.com/tea/ | \ + grep -oP '(?<=href="/tea/)[^/"]*' | \ + grep -E '^[0-9]+(\.[0-9]+){1,2}$' | \ + sort -V | \ + tail -n 1) + + + curl -L https://dl.gitea.com/tea/${LATEST_VERSION}/tea-${LATEST_VERSION}-linux-amd64 -o /usr/local/bin/tea + chmod +x /usr/local/bin/tea + tea --version + tea --version tea login add --name gitea --url ${{ gitea.server_url }} --token ${{ secrets.token }} tea login default gitea @@ -35,5 +43,5 @@ jobs: echo "$comment" >> ollama_review.txt done - ./tea pr comment ${{ gitea.event.pull_request.number }} --body "$(cat ollama_review.txt)" + tea pr comment ${{ gitea.event.pull_request.number }} --body "$(cat ollama_review.txt)" shell: bash \ No newline at end of file -- 2.47.2 From e2bb4633e4183e800e742ee43848b384721c427b Mon Sep 17 00:00:00 2001 From: oonyeje Date: Fri, 7 Mar 2025 16:43:05 -0500 Subject: [PATCH 15/17] - use regex --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index c1a9e90..0d4dbb2 100755 --- a/.drone.yml +++ b/.drone.yml @@ -56,7 +56,7 @@ steps: force_tag: true tags: - latest - - pr-build-${DRONE_BRANCH} + - pr-build-$(sed 's/\//-/g' <<< ${DRONE_BRANCH}) - name: Build and Push (Staging) Container Image image: plugins/docker when: -- 2.47.2 From 50877c642561037892ab0c22060dfa782a0641a5 Mon Sep 17 00:00:00 2001 From: oonyeje Date: Fri, 7 Mar 2025 17:57:14 -0500 Subject: [PATCH 16/17] - use brackets --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 0d4dbb2..31e2cae 100755 --- a/.drone.yml +++ b/.drone.yml @@ -56,7 +56,7 @@ steps: force_tag: true tags: - latest - - pr-build-$(sed 's/\//-/g' <<< ${DRONE_BRANCH}) + - pr-build-${sed 's/\//-/g' <<< ${DRONE_BRANCH}} - name: Build and Push (Staging) Container Image image: plugins/docker when: -- 2.47.2 From 407bc397c2e0d3d2e9bad95f403ce101354323da Mon Sep 17 00:00:00 2001 From: oonyeje Date: Fri, 7 Mar 2025 18:36:43 -0500 Subject: [PATCH 17/17] - use replace function --- .drone.yml | 50 +------------------------------------------------- 1 file changed, 1 insertion(+), 49 deletions(-) diff --git a/.drone.yml b/.drone.yml index 31e2cae..94ff2b8 100755 --- a/.drone.yml +++ b/.drone.yml @@ -56,7 +56,7 @@ steps: force_tag: true tags: - latest - - pr-build-${sed 's/\//-/g' <<< ${DRONE_BRANCH}} + - pr-build-${replace("${DRONE_BRANCH}", "/", "-")} - name: Build and Push (Staging) Container Image image: plugins/docker when: @@ -102,54 +102,6 @@ trigger: include: - push -# - name: deploy-staging -# image: plugins/ansible:latest -# settings: -# playbook: ansible/playbook.staging.yml -# galaxy: ansible/requirements.yml -# inventory: ansible/inventory.yml -# become_user: bside -# user: bside -# verbose: 4 -# become: true -# list_tasks: true -# list_hosts: true -# private_key: -# from_secret: STAGING_SERVER_PRIVATE_KEY -# trigger: -# branch: -# - master -# - prod -# - qa -# - feature/* -# event: -# - push -# - pull_request -# --- -# kind: pipeline -# type: exec -# name: staging-deploy - -# platform: -# os: linux -# arch: amd64 - -# steps: -# - name: ansible-deploy -# commands: -# - ansible --version -# - ansible-galaxy install --force --role-file ansible/requirements.yml -vvvv -# - ansible-playbook --inventory ansible/inventory.yml --list-hosts ansible/playbook.staging.yml -# trigger: -# branch: -# - master -# - prod -# - qa -# - feature/* -# event: -# - push -# - pull_request - volumes: - name: docker_sock host: -- 2.47.2