From ec1c0880b39d43c645041d535bd5bb7847389514 Mon Sep 17 00:00:00 2001 From: Wesley Cho Date: Sat, 31 Jan 2026 01:45:15 -0800 Subject: [PATCH 1/6] update readme. --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1a0a3dd..0559ca4 100644 --- a/README.md +++ b/README.md @@ -215,4 +215,6 @@ Push it to your Gitea instance. ```bash docker push git.chopark.home/wesscho/catalog26 -``` \ No newline at end of file +``` + +One more change From 49ef81c880ed1b7138af5f9a433965036adbd0ab Mon Sep 17 00:00:00 2001 From: Wesley Cho Date: Sat, 31 Jan 2026 15:12:47 -0800 Subject: [PATCH 2/6] demo.yaml workflow --- .gitea/workflows/demo.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .gitea/workflows/demo.yaml diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml new file mode 100644 index 0000000..c537cc6 --- /dev/null +++ b/.gitea/workflows/demo.yaml @@ -0,0 +1,19 @@ +name: Gitea Actions Demo +run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 +on: [push] + +jobs: + Explore-Gitea-Actions: + runs-on: ubuntu-latest + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" + - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." + - name: Check out repository code + uses: actions/checkout@v4 + - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." + - run: echo "🖥️ The workflow is now ready to test your code on the runner." + - name: List files in the repository + run: | + ls ${{ gitea.workspace }} + - run: echo "🍏 This job's status is ${{ job.status }}." From 7312e4754809ff306b97ea38dcb2ac0988d05f21 Mon Sep 17 00:00:00 2001 From: Wesley Cho Date: Sat, 31 Jan 2026 19:25:50 -0800 Subject: [PATCH 3/6] lint --- .gitea/workflows/pipeline.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/pipeline.yaml b/.gitea/workflows/pipeline.yaml index 9a98567..ef466fb 100644 --- a/.gitea/workflows/pipeline.yaml +++ b/.gitea/workflows/pipeline.yaml @@ -13,7 +13,7 @@ jobs: - name: Login to Registry # run: echo "${{ secrets.GITEA_TOKEN }}" | docker login 192.168.x.x --username ${{ github.actor }} --password-stdin run: echo "${{ secrets.GITEA_TOKEN }}" | docker login git.chopark.home --username ${{ github.actor }} --password-stdin - + - name: Build and Push run: | # docker build -t 192.168.x.x/${{ github.repository }}:latest . From 4f9f3491ba739b8035f4fdc946683ebe807666ba Mon Sep 17 00:00:00 2001 From: Wesley Cho Date: Sat, 31 Jan 2026 19:31:25 -0800 Subject: [PATCH 4/6] lint 2 --- .gitea/workflows/pipeline.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.gitea/workflows/pipeline.yaml b/.gitea/workflows/pipeline.yaml index ef466fb..55736ee 100644 --- a/.gitea/workflows/pipeline.yaml +++ b/.gitea/workflows/pipeline.yaml @@ -9,11 +9,9 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - - name: Login to Registry # run: echo "${{ secrets.GITEA_TOKEN }}" | docker login 192.168.x.x --username ${{ github.actor }} --password-stdin run: echo "${{ secrets.GITEA_TOKEN }}" | docker login git.chopark.home --username ${{ github.actor }} --password-stdin - - name: Build and Push run: | # docker build -t 192.168.x.x/${{ github.repository }}:latest . @@ -27,7 +25,6 @@ jobs: steps: - name: Set Kubeconfig run: echo "${{ secrets.KUBE_CONFIG }}" > kubeconfig.yaml - - name: Update Deployment run: | export KUBECONFIG=kubeconfig.yaml From 9cf9a31bb0b700b74df58fdbacbe8dd9304412b4 Mon Sep 17 00:00:00 2001 From: Wesley Cho Date: Sat, 31 Jan 2026 19:33:01 -0800 Subject: [PATCH 5/6] remove pipeline.yaml --- .gitea/workflows/pipeline.yaml | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 .gitea/workflows/pipeline.yaml diff --git a/.gitea/workflows/pipeline.yaml b/.gitea/workflows/pipeline.yaml deleted file mode 100644 index 55736ee..0000000 --- a/.gitea/workflows/pipeline.yaml +++ /dev/null @@ -1,32 +0,0 @@ -name: Build and Deploy -on: - pull_request: - branches: [ master ] - -jobs: - build-and-push: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Login to Registry -# run: echo "${{ secrets.GITEA_TOKEN }}" | docker login 192.168.x.x --username ${{ github.actor }} --password-stdin - run: echo "${{ secrets.GITEA_TOKEN }}" | docker login git.chopark.home --username ${{ github.actor }} --password-stdin - - name: Build and Push - run: | -# docker build -t 192.168.x.x/${{ github.repository }}:latest . -# docker push 192.168.x.x/${{ github.repository }}:latest - docker build -t git.chopark.home/${{ github.repository }}:latest . - docker push git.chopark.home/${{ github.repository }}:latest - - deploy-to-k8s: - needs: build-and-push - runs-on: ubuntu-latest - steps: - - name: Set Kubeconfig - run: echo "${{ secrets.KUBE_CONFIG }}" > kubeconfig.yaml - - name: Update Deployment - run: | - export KUBECONFIG=kubeconfig.yaml - # kubectl set image deployment/my-app my-app=192.168.x.x/${{ github.repository }}:latest - kubectl set image deployment/catalog26-deployment catalog26-deployment=git.chopark.home/${{ github.repository }}:latest From e91c76b9a33c54c37d6a7e7e13ede95860878dfc Mon Sep 17 00:00:00 2001 From: Wesley Cho Date: Sat, 31 Jan 2026 19:59:49 -0800 Subject: [PATCH 6/6] demo.yaml v2 --- .gitea/workflows/demo.yaml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index c537cc6..ffbfa24 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -1,19 +1,26 @@ name: Gitea Actions Demo -run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 +run-name: ${{ github.actor }} is building and pushing 🚀 on: [push] jobs: Explore-Gitea-Actions: runs-on: ubuntu-latest steps: - - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" - - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - name: Check out repository code uses: actions/checkout@v4 - - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository + + - name: Login to Gitea Registry + # We use single quotes around the secret to prevent shell interpretation + # and the VM IP to bypass the 'server' DNS issue. run: | - ls ${{ gitea.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." + echo '${{ secrets.GITEA_TOKEN }}' | docker login git.chopark.home:3000 --username ${{ github.actor }} --password-stdin + + - name: Build and Push Docker Image + run: | + docker build -t git.chopark.home:3000/${{ github.repository }}:latest . + docker push git.chopark.home:3000/${{ github.repository }}:latest + + - name: List files in the repository + run: ls ${{ github.workspace }} + + - run: echo "🍏 Build and Push status is ${{ job.status }}." \ No newline at end of file