From 7eee04caf76f477e4a6f0cbb6aa4839fc4d01688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Mon, 14 Apr 2025 13:51:57 +0800 Subject: [PATCH] =?UTF-8?q?GitHub=E4=B8=8A=E4=B8=8B=E6=96=87.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/GitHub上下文.yaml | 10 ++++++++++ .github/workflows/cache.yaml.off | 2 +- .github/workflows/docker-run-挂载目录.yaml | 18 ----------------- .../{hashFiles.yaml => hashFiles.yaml.off} | 0 .github/workflows/login-harbor.yaml | 20 ------------------- .github/workflows/拉取另一个仓库.yaml | 12 ----------- 6 files changed, 11 insertions(+), 51 deletions(-) create mode 100644 .github/workflows/GitHub上下文.yaml delete mode 100644 .github/workflows/docker-run-挂载目录.yaml rename .github/workflows/{hashFiles.yaml => hashFiles.yaml.off} (100%) delete mode 100644 .github/workflows/login-harbor.yaml delete mode 100644 .github/workflows/拉取另一个仓库.yaml diff --git a/.github/workflows/GitHub上下文.yaml b/.github/workflows/GitHub上下文.yaml new file mode 100644 index 0000000..12ee657 --- /dev/null +++ b/.github/workflows/GitHub上下文.yaml @@ -0,0 +1,10 @@ +on: + push: + workflow_dispatch: +jobs: + job1: + runs-on: ubuntu-arm64 + steps: + - name: github.repository_id + run: | + echo ${{ github.repository_id }} diff --git a/.github/workflows/cache.yaml.off b/.github/workflows/cache.yaml.off index d4f563f..c5dcaa2 100644 --- a/.github/workflows/cache.yaml.off +++ b/.github/workflows/cache.yaml.off @@ -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 \ No newline at end of file +# https://about.gitea.com/resources/tutorials/enable-gitea-actions-cache-to-accelerate-cicd \ No newline at end of file diff --git a/.github/workflows/docker-run-挂载目录.yaml b/.github/workflows/docker-run-挂载目录.yaml deleted file mode 100644 index 81947a9..0000000 --- a/.github/workflows/docker-run-挂载目录.yaml +++ /dev/null @@ -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 }} \ No newline at end of file diff --git a/.github/workflows/hashFiles.yaml b/.github/workflows/hashFiles.yaml.off similarity index 100% rename from .github/workflows/hashFiles.yaml rename to .github/workflows/hashFiles.yaml.off diff --git a/.github/workflows/login-harbor.yaml b/.github/workflows/login-harbor.yaml deleted file mode 100644 index 4cc038a..0000000 --- a/.github/workflows/login-harbor.yaml +++ /dev/null @@ -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 }} \ No newline at end of file diff --git a/.github/workflows/拉取另一个仓库.yaml b/.github/workflows/拉取另一个仓库.yaml deleted file mode 100644 index d445cae..0000000 --- a/.github/workflows/拉取另一个仓库.yaml +++ /dev/null @@ -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