Files
catalog26/.gitea/workflows/demo.yaml
Wesley Cho 154e9039c3
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 28s
add env variable
2026-02-01 15:09:30 -08:00

33 lines
1006 B
YAML

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
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.REGISTRY_TOKEN }}' | \
docker login ${{ env.REGISTRY }} \
--username ${{ gitea.actor }} \
--password-stdin
- name: Build and Push Docker Image
run: |
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 }}
- run: echo "🍏 Build and Push status is ${{ job.status }}."