35 lines
1.4 KiB
YAML
35 lines
1.4 KiB
YAML
name: Gitea Actions Demo
|
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
|
on: [push]
|
|
|
|
jobs:
|
|
Explore-Gitea-Actions:
|
|
runs-on: ps_runner_labels
|
|
container:
|
|
image: catthehacker/ubuntu:act-latest
|
|
volumes:
|
|
- ubuntu_hostedtoolcache:/opt/hostedtoolcache
|
|
# env:
|
|
# RUNNER_TOOL_CACHE: /toolcache
|
|
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 }}."
|
|
- 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."
|
|
- run: echo "🍏 This job's status is ${{ job.status }}."
|
|
- run: docker version
|
|
# - name: Set up SSH
|
|
# run: |
|
|
# mkdir -p ~/.ssh
|
|
# echo "${{ secrets.GITEA1_SSH_KEY }}" > ~/.ssh/id_rsa
|
|
# chmod 600 ~/.ssh/id_rsa
|
|
# ssh-keyscan -H 106.14.174.241 >> ~/.ssh/known_hosts
|
|
# - name: Check out repository code
|
|
# env:
|
|
# GITEA_TOKEN: ${{ secrets.GITEA1_TOKEN }}
|
|
# run: git clone root@106.14.174.241:3000/root/simple-go-action.git .
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0 |