This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/docs/use-cases/1216-go-on-docker-hub.md
Tom Chauveau 2d3acc61e0
Add dagger golang use case
Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
2022-03-16 12:14:24 +01:00

1.1 KiB

slug displayed_sidebar
/1216/ci-cd-for-go-project europa

Go on Docker Hub

Dagger stand as a powerful CI/CD tool that works on any environment.

For instance, you can use go package to control the whole CI/CD process, from test to push into a remote registry.

:::tip Following examples can be used as a template for any standalone go project. :::

Test

You can then run unit test in your go project with

dagger do unit-test

:::tip You can also use dagger to write integration tests :::

Build

:::tip You can control the binary platform with os and arch field. :::

You can then build your binary with

dagger do build

Push

You can then build and push your go project with

dagger do push

Push multi-platform

Coming soon