Files
catalog26/.gitea/workflows/demo.yaml
Wesley Cho e91c76b9a3
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
demo.yaml v2
2026-01-31 19:59:49 -08:00

26 lines
930 B
YAML

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 }}."