Giter Club home page Giter Club logo

gitea-workshop's Introduction

Gitea
Gitea-workshop

◦ Workshop on open-source codebase management platform Gitea.


Gitea jest TypeScript license

English Readme | 繁體中文 Readme

Resources

Introduction

Cloud summit 2023 open source Gitea launches Actions to integrate CI/CD process

Gitea Docs

Gitea documentation

Steps

Git Workshop repo

Foreword

This workshop at Cloud Summit 2023 was undoubtedly the most valuable one for me. Appleboy demonstrated his exceptional expertise and, alongside four other talented international developers, they created Gitea, an open-source platform similar to Github with a mission to surpass and become the next biggest codebase management platform. Their achievement is truly impressive.

During the workshop, Appleboy highlighted MediaTek's strong emphasis on security in the workplace, where some areas even lack internet access. Under such circumstances, setting up a self-hosted Git service can be quite troublesome. GitLab, though powerful, consumes significant resources when self-hosted. This led to the birth of Gitea, a project written in Golang, compiled into an executable file that can be executed cross-platform with minimal resource requirements. Deploying Gitea on an idle VM enables the entire company to enjoy Git services effortlessly. It's truly remarkable.

This project integrates all the materials covered in the workshop, from the initial setup of Gitea service, configuring Runners, to finally uploading a test repository and setting up Gitea actions, all done using Docker. Following the workshop allows participants to fully experience the power of Golang and witness the capabilities of Appleboy and the other developers. It's truly impressive.

Getting started

Installation

Clone repo

git clone https://github.com/ttpss930141011/Gitea-workshop.git

Start the Gitea service

cd gitea
docker-compose up -d

Install Gitea Actions

After following the steps in the Workshop, you can see that the Runner tab appears.

1690996795566.jpg

Install runner

Follow the steps in the Workshop, or refer to the gitea-runner-1 folder in this repo and add a .env file

// ./gitea-runner-1/.env
GITEA_INSTANCE_URL=<gitea service instance url>
GITEA_RUNNER_REGISTRATION_TOKEN=<runners registration token>

Start him:

docker-compose up -d

After startup, you can see the newly created Runner in Runners Management

1690997300500.jpg

References: https://docs.gitea.com/zh-cn/usage/actions/quickstart

Initialize the repo on Gitea

In fact, the interface is basically very similar to the tools we usually use, and there are even repos that can migrate other Codebase platforms.

1690997573485.jpg

After building the project, we need to open the Gitea Actions function of Repo itself, which can be set in Repo setting.

Please refer to the documentation https://docs.gitea.com/usage/actions/quickstart#use-actions

In the QA page, it is also mentioned that the Actions of the new warehouse can be enabled by default, hyperlink.

Push your repo

You can use the test-repo in this repo to push up to test whether CI will proceed.

1690997955121.jpg

Note

At the beginning, I pushed the Python project and used pytest for testing, but encountered an error of Version 3.11.4 was not found in the local cache as shown in the figure.

1690998051079.jpg

Obviously the installed Python version and runner os conform to the regulations in versions-manifest.json, but both will be in the Set Up Python made an error, and after crawling through the text, someone recently proposed a similar Bug, this issue has not been resolved, so use TypeScript instead and Use jest for testing.

gitea-workshop's People

Contributors

ttpss930141011 avatar

Watchers

 avatar  avatar

Forkers

renovate-bot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.