From 439dc9ddefca6e9a03937e6de807c464cc5c91bf Mon Sep 17 00:00:00 2001 From: Wesley Cho Date: Sun, 1 Feb 2026 00:20:25 -0800 Subject: [PATCH 1/4] git login via https --- .gitea/workflows/demo.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index ffbfa24..6cd2f62 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -13,7 +13,7 @@ jobs: # We use single quotes around the secret to prevent shell interpretation # and the VM IP to bypass the 'server' DNS issue. run: | - echo '${{ secrets.GITEA_TOKEN }}' | docker login git.chopark.home:3000 --username ${{ github.actor }} --password-stdin + echo '${{ secrets.GITEA_TOKEN }}' | docker login https://git.chopark.home --username ${{ github.actor }} --password-stdin - name: Build and Push Docker Image run: | From b7df8c0cc327bcde0c8d5f2a014d58bb67d7db71 Mon Sep 17 00:00:00 2001 From: Wesley Cho Date: Sun, 1 Feb 2026 00:30:15 -0800 Subject: [PATCH 2/4] actions_token --- .gitea/workflows/demo.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index 6cd2f62..d07aadb 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -13,7 +13,7 @@ jobs: # We use single quotes around the secret to prevent shell interpretation # and the VM IP to bypass the 'server' DNS issue. run: | - echo '${{ secrets.GITEA_TOKEN }}' | docker login https://git.chopark.home --username ${{ github.actor }} --password-stdin + echo '${{ secrets.ACTIONS_TOKEN }}' | docker login https://git.chopark.home --username ${{ github.actor }} --password-stdin - name: Build and Push Docker Image run: | From cca9457769ee6048ed0141beff041a96fb46cbf4 Mon Sep 17 00:00:00 2001 From: Wesley Cho Date: Sun, 1 Feb 2026 09:08:42 -0800 Subject: [PATCH 3/4] update build and push commands --- .gitea/workflows/demo.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index d07aadb..ad7522b 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -17,10 +17,10 @@ jobs: - 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 + docker build -t git.chopark.home/${{ github.repository }}:latest . + docker push git.chopark.home/${{ 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 + - run: echo "🍏 Build and Push status is ${{ job.status }}." From 154e9039c3763e8c707c1a4182b458482feb07af Mon Sep 17 00:00:00 2001 From: Wesley Cho Date: Sun, 1 Feb 2026 15:09:30 -0800 Subject: [PATCH 4/4] add env variable --- .gitea/workflows/demo.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index ad7522b..d8ad9d0 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -2,6 +2,9 @@ name: Gitea Actions Demo run-name: ${{ github.actor }} is building and pushing 🚀 on: [push] +env: + REGISTRY: git.chopark.home + jobs: Explore-Gitea-Actions: runs-on: ubuntu-latest @@ -13,12 +16,15 @@ jobs: # We use single quotes around the secret to prevent shell interpretation # and the VM IP to bypass the 'server' DNS issue. run: | - echo '${{ secrets.ACTIONS_TOKEN }}' | docker login https://git.chopark.home --username ${{ github.actor }} --password-stdin + echo '${{ secrets.REGISTRY_TOKEN }}' | \ + docker login ${{ env.REGISTRY }} \ + --username ${{ gitea.actor }} \ + --password-stdin - name: Build and Push Docker Image run: | - docker build -t git.chopark.home/${{ github.repository }}:latest . - docker push git.chopark.home/${{ github.repository }}:latest + docker build -t ${{ env.REGISTRY }}/${{ gitea.repository }}:latest . + docker push ${{ env.REGISTRY }}/${{ gitea.repository }}:latest - name: List files in the repository run: ls ${{ github.workspace }}