2024-07-25 06:08:14 +08:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: Gitea Actions Demo
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: echo event
|
2024-07-25 07:33:55 +08:00
|
|
|
image: arm64v8/alpine:latest
|
2024-07-25 06:08:14 +08:00
|
|
|
commands:
|
|
|
|
- echo "🎉 The job was automatically triggered by a push event."
|
|
|
|
|
|
|
|
- name: echo runner os
|
2024-07-25 07:33:55 +08:00
|
|
|
image: arm64v8/alpine:latest
|
2024-07-25 06:08:14 +08:00
|
|
|
commands:
|
|
|
|
- echo "🐧 This job is now running on a Linux server hosted by Gitea!"
|
|
|
|
|
|
|
|
- name: echo branch and repository
|
2024-07-25 07:33:55 +08:00
|
|
|
image: arm64v8/alpine:latest
|
2024-07-25 06:08:14 +08:00
|
|
|
commands:
|
|
|
|
- echo "🔎 The name of your branch is $DRONE_COMMIT_BRANCH and your repository is $DRONE_REPO."
|
|
|
|
|
|
|
|
- name: checkout repository
|
2024-07-25 07:33:55 +08:00
|
|
|
image: arm64v8/alpine:latest
|
2024-07-25 06:08:14 +08:00
|
|
|
commands:
|
|
|
|
- apk add --no-cache git
|
|
|
|
- git clone http://172.17.0.1:3000/$DRONE_REPO.git .
|
|
|
|
|
|
|
|
- name: echo repository cloned
|
2024-07-25 07:33:55 +08:00
|
|
|
image: arm64v8/alpine:latest
|
2024-07-25 06:08:14 +08:00
|
|
|
commands:
|
|
|
|
- echo "💡 The $DRONE_REPO repository has been cloned to the runner."
|
|
|
|
|
|
|
|
- name: echo workflow ready
|
2024-07-25 07:33:55 +08:00
|
|
|
image: arm64v8/alpine:latest
|
2024-07-25 06:08:14 +08:00
|
|
|
commands:
|
|
|
|
- echo "🖥️ The workflow is now ready to test your code on the runner."
|
|
|
|
|
|
|
|
- name: list files in repository
|
2024-07-25 07:33:55 +08:00
|
|
|
image: arm64v8/alpine:latest
|
2024-07-25 06:08:14 +08:00
|
|
|
commands:
|
|
|
|
- ls .
|
|
|
|
|
|
|
|
- name: echo job status
|
2024-07-25 07:33:55 +08:00
|
|
|
image: arm64v8/alpine:latest
|
2024-07-25 06:08:14 +08:00
|
|
|
commands:
|
|
|
|
- echo "🍏 This job's status is $DRONE_BUILD_STATUS."
|