GitHub上下文.yaml
All checks were successful
/ job3 (push) Has been skipped
/ job2 (push) Successful in 5s
/ job1 (push) Successful in 17s

This commit is contained in:
严浩
2025-04-14 13:51:57 +08:00
parent 06f32d799a
commit 7eee04caf7
6 changed files with 11 additions and 51 deletions

10
.github/workflows/GitHub上下文.yaml vendored Normal file
View File

@ -0,0 +1,10 @@
on:
push:
workflow_dispatch:
jobs:
job1:
runs-on: ubuntu-arm64
steps:
- name: github.repository_id
run: |
echo ${{ github.repository_id }}

View File

@ -19,4 +19,4 @@ jobs:
- run: ls -lha /opt/hostedtoolcache/pnpm-store || true
- run: env
# https://about.gitea.com/resources/tutorials/enable-gitea-actions-cache-to-accelerate-cicd$0
# https://about.gitea.com/resources/tutorials/enable-gitea-actions-cache-to-accelerate-cicd

View File

@ -1,18 +0,0 @@
on:
push:
jobs:
test:
runs-on: ubuntu-arm64
steps:
- uses: actions/checkout@main
- run: ls -al
- name: Run Docker container
run: |
docker run --rm \
--volume type=bind,source=${{ github.workspace }},target=/workspace \
--workdir /workspace \
alpine:latest \
sh -c "echo 'Hello from Docker!' && ls -al"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -1,20 +0,0 @@
on:
push:
workflow_dispatch:
jobs:
job1-harbor-bot:
runs-on: ubuntu-arm64
steps:
- uses: docker/login-action@v3
with:
registry: harbor.oo1.dev
username: robot$harbor-bot
password: ${{ secrets.HARBOR_ROBOT_TOKEN }}
job2-harbor_username:
runs-on: ubuntu-arm64
steps:
- uses: docker/login-action@v3
with:
registry: harbor.oo1.dev
username: harbor_username
password: ${{ secrets.HARBOR_PASSWORD }}

View File

@ -1,12 +0,0 @@
on:
push:
jobs:
check-out-another-repo:
runs-on: ubuntu-arm64
steps:
- uses: actions/checkout@main
with:
repository: 'examples/vue-ts-example'
ref: 'main'
- run: ls -al