GitHub上下文.yaml
This commit is contained in:
10
.github/workflows/GitHub上下文.yaml
vendored
Normal file
10
.github/workflows/GitHub上下文.yaml
vendored
Normal 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 }}
|
2
.github/workflows/cache.yaml.off
vendored
2
.github/workflows/cache.yaml.off
vendored
@ -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
|
18
.github/workflows/docker-run-挂载目录.yaml
vendored
18
.github/workflows/docker-run-挂载目录.yaml
vendored
@ -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 }}
|
20
.github/workflows/login-harbor.yaml
vendored
20
.github/workflows/login-harbor.yaml
vendored
@ -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 }}
|
12
.github/workflows/拉取另一个仓库.yaml
vendored
12
.github/workflows/拉取另一个仓库.yaml
vendored
@ -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
|
Reference in New Issue
Block a user