Compare commits

...

9 Commits

Author SHA1 Message Date
e91c76b9a3 demo.yaml v2
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
2026-01-31 19:59:49 -08:00
9cf9a31bb0 remove pipeline.yaml 2026-01-31 19:33:01 -08:00
4f9f3491ba lint 2 2026-01-31 19:31:25 -08:00
7312e47548 lint 2026-01-31 19:25:50 -08:00
49ef81c880 demo.yaml workflow 2026-01-31 15:12:47 -08:00
471577f3e4 third 2026-01-31 01:49:08 -08:00
ec1c0880b3 update readme. 2026-01-31 01:45:15 -08:00
cbb69b7643 update readme 2026-01-31 01:40:29 -08:00
6987a00928 Merge pull request 'add workflow' (#2) from feature-test into master
Reviewed-on: https://git.chopark.home/wesscho/Catalog26/pulls/2
2026-01-28 07:24:08 +00:00
3 changed files with 28 additions and 36 deletions

View File

@@ -0,0 +1,26 @@
name: Gitea Actions Demo
run-name: ${{ github.actor }} is building and pushing 🚀
on: [push]
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- 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: |
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 }}."

View File

@@ -1,35 +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

View File

@@ -215,4 +215,5 @@ Push it to your Gitea instance.
```bash
docker push git.chopark.home/wesscho/catalog26
```
```
third comment