Dan Anglin
c2a1e28773
Summary: Add simple CI pipelines to the greet project. Here we add CI pipelines for both Woodpecker and Dagger CI as we are currently interested in both technologies. Changes: - Add .woodpecker/woodpecker.yml - Updated LICENSE - Updated README.md - Fixed linting issues in greet.go - Created a new internal go module for CI/CD in internal/build - Moved the magefiles to internal/build/magefiles - Add dagger pipeline code
42 lines
708 B
Markdown
42 lines
708 B
Markdown
# Greetings
|
|
|
|
## Summary
|
|
|
|
Greet is a simple Go CLI application that greets a recipient.
|
|
This is a simple project used for the purpose of testing upcoming automation,
|
|
such as CI/CD integration and dependency management, which will be used by other projects
|
|
hosted in Code Flow.
|
|
|
|
## Project's Avatar
|
|
|
|
The project's avatar was made by [Smashicons](https://www.flaticon.com/authors/smashicons) from [Flaticon](https://www.flaticon.com).
|
|
|
|
## Requirements
|
|
|
|
- [Go](https://go.dev/)
|
|
|
|
## Build
|
|
|
|
```
|
|
$ go build -o greet .
|
|
```
|
|
|
|
## Run
|
|
|
|
Greet the world.
|
|
```
|
|
$ ./greet
|
|
Hello, World!
|
|
```
|
|
|
|
Greet a person.
|
|
```
|
|
$ ./greet Bob
|
|
Hello, Bob!
|
|
```
|
|
|
|
## Run Dagger Pipeline locally
|
|
|
|
```
|
|
$ pushd internal/build && go run . && popd
|
|
```
|